CommandRewriter 是一个小型插件,允许你为自定义命令分配自定义文本。这意味着你可以为例如 /rules 这样的命令分配一组规则列表。
你可以使用颜色,并定义任意数量的行数。如果 Minecraft 聊天框中的字符数不足以容纳你的内容,你可以直接编辑 /plugins/CommandRewriter/ 目录下的 config.yml 文件。编辑完成后重新加载即可。
功能:
- 当玩家执行某个命令时显示指定文本
- 子命令区分
- 支持颜色
- 多行支持
- 游戏内配置
- 无需复杂配置
用法:
为命令分配文本:
- 使用命令 /cr set <command> 启动助手
- 命令前不需要加上斜杠 /
- 命令可以包含参数(例如 /help 2 或 /rules pvp)
- 接着输入你想要分配的文本
- 可以使用颜色定义,如 &6
- 符号 "|" 表示换行
从命令中移除已分配的文本:
列出所有已分配的文本:
重新加载配置文件:
帮助:
子命令(v1.2 新增):
你可以让 CommandRewriter 监听特定的子命令。例如:
如果你已经为 /help 分配了第一个“页面”的文本,现在想要第二个“页面”,只需将文本分配到 /help 2(或其他参数)即可。如果玩家输入 /help 3(该命令尚未分配任何文本),系统会自动将其引导至 /help。
权限:
CommandRewriter.set - 允许为命令分配消息的权限
CommandRewriter.remove - 允许从命令中移除分配的权限
CommandRewriter.list - 允许列出所有已分配文本的权限
CommandRewriter.reload - 允许重新加载配置文件的权限
CommandRewriter is a small plugin that allows you to assign custom texts to custom commands. That means that you can assign a list of rules to the command /rules for example.
You can use colors and define as many lines as you want. If the Minecraft chat does not contain as many chars as you need, you can directly edit the config.yml in /plugins/CommandRewriter/. Just reload after the editing.
Features:
- Show the player a text if he executes a command
- Subcommand differentiation
- Colors
- Multiple lines
- In-Game configuration
- No complex configuration
Usage:
Assigning a text to a command:
- Use the command /cr set <command> to start the assistent
- The command has to be without the leading /
- The command can have arguments (/help 2 or /rules pvp)
- Now type the text you want to assign
- You can use color definitions like &6
- The symbol "|" marks a new line
Removing a text from a command:
- Type in /cr remove <command>
List all assigned texts:
Reload the config:
Help:
Subcommands (NEW in v1.2):
You can tell CommandRewriter to listen to a subcommand. For example:
You assigned the first help "page" to /help. Now you want a second "page". Just assign the text to /help 2 (or whatever). If a player types /help 3 (this command has no assignment yet) he will be directed to /help.
Permissions:
CommandRewriter.set - Permission to assign messages to commands
CommandRewriter.remove - Permission to remove the assignment from a command
CommandRewriter.list - Permissions for listing all assigned texts
CommandRewriter.reload - Permissions for reloading the config
评论 0
登录后参与评分
还没有评论,来抢沙发吧