FakeMessager
视频 by SeaborgiumMC - 1.2 版本展示(很久以前)
1.6 版新增内容
- 变量将按如下方式存储。注意:变量名不区分大小写。
- 每次创建已存在的变量时,它将被覆盖。
- 在任意 FakeMessager 命令中,通过在两个百分号之间输入变量名来使用变量(例如 %mymessage%)。
- 如果你希望 FakeMessager 显示百分号,请在其前添加反斜杠。
- 例如:/fm I will give you 50\% of the money.
- 使用变量的示例:/fm &eNotch%login%,结果为:Notch has joined the server. Pretty darn cool, eh? XD
- 此外,你无需将消息用双引号括起来,但如果消息包含 YAML 中的任何特殊字符,加载时会报错,或配置将恢复为默认值。
variables:
mymessage: "Mymessagehere!"
快速提示:
- 使用 fmsave 存储变量值时,请用双引号将其括起来。这样可以保留应有的空格。
- 示例:/fmsave " has joined the game." - /fm &eNotch%login% - 结果:Notch has joined the game. - 黄色显示。
注意:
刚刚意识到我能这么快就加上这个功能 :D 已添加到 V1.6 并正在上传。你可以将其用作某种帮助消息,尽管我是在编写代码之前先写了这些说明 ;)
我将致力于添加更高级的变量。新类型的变量将能够接受内部变量,这意味着你可以在存储的消息中包含变量。示例:/fm %story:variable1,variable2,variable3% - 注意,逗号与下一个变量之间没有空格。
这将输出以下内容:The variable1 variable2 fox jumps over the variable3 dog.
此示例中的配置文件大致如下:
variables:
story: The % % fox jumps over the % dog.
另一个示例:
variables:
login: '&e%and&4%&ehas&kjoined&rðegame.'
命令:/fm %login:Notch,Whitehooder%
输出:Notch and Whitehooder has ^i2!£¤3 the game. - 整条消息为黄色,但 Whitehooder 除外,星号是随机变化的字母,或者如果你喜欢的话,可以称为外星字母。
功能:
- 在聊天中打印/写入任意消息(不带任何前缀。例如:<Whitehooder> "hello")
- 向玩家发送任意消息(不带任何前缀。例如:<Whitehooder> "hello")
- 快速模拟其他玩家的聊天消息。
- 方便查看所有颜色和格式代码。
- 所有命令均可从控制台执行
- 完全支持颜色和字体
命令:
- fm
- 用法:/fm <text>
- 描述:广播自定义消息。
- 别名:echo, fakemessager, fakemessage
- fmc
- 用法:/fmc <as player> <text>
- 描述:以指定名称广播自定义聊天消息。
- 别名:echoc, fakemessagechat, fakemessagerchat, fmchat, echochat, fcm, fakechatmessage.
- fmcc
- 用法:/fmcc
- 描述:显示所有可用的格式代码。
- 别名:echocolorcodes, echocolors, echocc, fakemessagercolorcodes, fakemessagercolors, fakemessagecolors.
- fmp
- 用法:/fmp <to player> <text>
- 描述:向玩家发送自定义消息。
- 别名:echoplayer, echop, fakemessagerplayer, fakemessageplayer, fmplayer.
- fmpc
- 用法:/fmpc <to player> <as player> <text>
- 描述:以玩家身份向玩家发送自定义聊天消息。
- 别名:echoplayerchat, echocp, echopc, fakemessagerchatplayer, fakemessagechatplayer, fmcp
- fmreload
- 用法:/fmreload
- 描述:重新加载 FakeMessager 的配置。
- 别名:fmr, echoreload, fakemessagerreload
- fmsave
- 用法:/fmsave <variable name> <variable value>
- 描述:存储新变量。
- 别名:echosave, echos, fms, fakemessagersave, fakemessagers
- fmdelete:
- 用法:/fmdelete <variable name>
- 描述:删除一个变量。
- 别名:echodelete, echodel, fmdel, fmd, fakemessagerdelete
- fmdeleteall:
- 用法:/fmdeleteall
- 描述:删除所有已存储的变量。无法撤销。
- 别名:echodeleteall, echodelall, fmdelall, fmwipe, fakemessagerdelete
权限:
- fm.*: 授予访问 FakeMessager 所有功能的权限。
- fm: 授予广播虚假消息的权限。
- fm.chat: 授予广播虚假聊天消息的权限。
- fm.colorcodes: 授予显示所有可用格式代码的权限。
- fm.player: 授予向玩家发送自定义消息的权限。
- fm.playerchat: 授予向玩家发送自定义聊天消息的权限
- fm.reload: 授予重新加载 FakeMessager 配置的权限。
- fm.delete: 允许删除变量。
- fm.deleteall: 允许通过单个命令删除所有变量。
- fm.delete.all: 与上述相同,只需其中之一即可获得该命令的访问权限。拥有 fm.delete 权限的玩家还需要额外获得 fm.deleteall 或 fm.delete.all 权限才能使用 /fmdeleteall 命令。
待办事项:
- 添加 /fm load 命令。快速从 yml 文件加载存储的消息。可能也会添加 /fm save。 - 已完成
- 非常欢迎提供建议 :D
FakeMessager
Video by SeaborgiumMC - Showcase for version 1.2 (a long time ago)
New in version 1.6
- Variables will be stored like below. Note: variables are not case sensitive.
- Whenever you create a variable that already exists it will be overwritten.
- Variables are used by typing the variable name between two percentages (%mymessage%) in any of the FakeMessager commands.
- If you want FakeMessager to display the percentage, prefix it with a backslash.
- Like so: /fm I will give you 50\% of the money.
- Example for using variable: /fm &eNotch%login%, which would result in: Notch has joined the server. Pretty darn cool, eh? XD
- Also, you do not have to enclose the messages in double quotes, but if the message includes any of the special characters in YAML, you will receive an error on load, or the config will be set back to default.
variables:
mymessage: "Mymessagehere!"
Quick Tip:
- Enclose variable values in double quotes when using fmsave to store them. Doing so will keep spe spaces like they should be.
- Example: /fmsave " has joined the game." - /fm &eNotch%login% - Results in: Notch has joined the game. - In yellow.
Note:
Just realized how quickly I could add this :D Added to V1.6 and uploading now. Use this as some sort of help message, even though I wrote it before I coded it ;)
I will be working on adding more advanced variables. The newer variable types will be able to accept inner variables, meaning, you could have variables inside the stored messages. An example: /fm %story:variable1,variable2,variable3% <- Notice, there is no space between commas and next variable.
This would print the following: The variable1 variable2 fox jumps over the variable3 dog.
The config file in this example looks something like this:
variables:
story: The % % fox jumps over the % dog.
Another example:
variables:
login: '&e%and&4%&ehas&kjoined&rðegame.'
Command: /fm %login:Notch,Whitehooder%
Output: Notch and Whitehooder has ^i2!£¤3 the game. - The whole message in yellow, except Whitehooder, and the stars are the randomly changin letters, or, alien letters, if you like.
Features:
- Print/Write whatever message in chat (without any prefix. Ex: <Whitehooder> "hello")
- Send whatever message to a player (without any prefix. Ex: <Whitehooder> "hello")
- Fast ways to fake chat messages as other players.
- Easy way for viewing all color and formatting codes.
- All commands available from console
- Fully Color and Font supported
Commands:
- fm
- Usage: /fm <text>
- Description: Broadcasts a custom message.
- Aliases: echo, fakemessager, fakemessage
- fmc
- Usage: /fmc <as player> <text>
- Description: Broadcasts a custom chat message as a name.
- Aliases: echoc, fakemessagechat, fakemessagerchat, fmchat, echochat, fcm, fakechatmessage.
- fmcc
- Usage: /fmcc
- Description: Shows all formatting codes available.
- Aliases: echocolorcodes, echocolors, echocc, fakemessagercolorcodes, fakemessagercolors, fakemessagecolors.
- fmp
- Usage: /fmp <to player> <text>
- Description: Sends a custom message to a player.
- Aliases: echoplayer, echop, fakemessagerplayer, fakemessageplayer, fmplayer.
- fmpc
- Usage: /fmpc <to player> <as player> <text>
- Description: Sends a custom chat message as a player to a player.
- Aliases: echoplayerchat, echocp, echopc, fakemessagerchatplayer, fakemessagechatplayer, fmcp
- fmreload
- Usage: /fmreload
- Description: Reloads FakeMessagers configuration.
- Aliases: fmr, echoreload, fakemessagerreload
- fmsave
- Usage: /fmsave <variable name> <variable value>
- Description: Stores a new variable.
- Aliases: echosave, echos, fms, fakemessagersave, fakemessagers
- fmdelete:
- Usage: /fmdelete <variable name>
- Description: Deletes a variable.
- Aliases: echodelete, echodel, fmdel, fmd, fakemessagerdelete
- fmdeleteall:
- Usage: /fmdeleteall
- Description: Deletes every single variable stored. No way back.
- Aliases: echodeleteall, echodelall, fmdelall, fmwipe, fakemessagerdelete
Permissions:
- fm.*: Gives access to everything fakemessager can provide.
- fm: Gives access to broadcast a fake message.
- fm.chat: Gives access to broadcast a fake chat message.
- fm.colorcodes: Gives access to show all available formatting codes.
- fm.player: Gives access to send a custom message to a player.
- fm.playerchat: Gives access to send a custom chat message to a player
- fm.reload: Gives access to reload FakeMessagers configuration.
- fm.delete: Gives access to delete variables.
- fm.deleteall: Gives access to delete all variables with a single command.
- fm.delete.all: Same as above, only one of these are needed for access to the command. A player with the permission fm.delete will need either fm.deleteall og fm.delete.all additionally to be able to use the /fmdeleteall command.
ToDo:
- Add /fm load command. Quickly load stored messages from a yml file. Probably add /fm save as well. - Done
- Suggestions are (still) very welcome :D
评论 0
登录后参与评分
还没有评论,来抢沙发吧