大家好!
这是一个插件,可以通过一个可配置的简单命令来执行多条命令。你可以添加参数并定义快捷方式,例如输入 /t 即可执行 /time。
使用 Metrics 向 发送完全匿名的数据以进行使用情况追踪。有关更多信息,请参阅 mcstats.org 和 GitHub。
安装:
- 将 MultiCommand.jar 复制到 /plugins/ 目录中
- 重启或重载服务器
配置/使用方法:
- 创建新的命令列表:
- 输入 /muco create <name>
- 然后通过 /muco add <name> <command> 添加你的命令
- 重要提示:
- 首先输入你要执行的第一个命令。
- 别忘了加斜杠 /。如果通过控制台执行命令列表,斜杠会自动被移除
- 现在输入 /muco <name>,命令将依次执行。
执行命令:
- 输入 /muco <name> - 需要权限 MultiCommand.use.<name>
列出所有命令列表:
- 输入 /muco list - 需要权限 MultiCommand.list
列出某个列表中的所有命令:
- 输入 /muco show <name> - 需要权限 MultiCommand.show.<name>
从命令列表中删除一条命令:
- 输入 /muco remove <name> <带斜杠的命令> - 需要权限 MultiCommand.remove.<name>
删除一个命令列表:
- 输入 /muco delete <name> - 需要权限 MultiCommand.delete.<name>
重载配置文件:
- 输入 /muco reload - 需要权限 MultiCommand.reload
参数和变量:
一个简单的示例:
- 输入 /muco create exampleList - 需要权限 MultiCommand.create.exampleList
- 然后:/muco add exampleList /time set $1
- 可能还需要:/muco add exampleList /say $1 $2
- 执行:/muco exampleList testVariable1 testVariable2
默认情况下,你可以添加 $1、$2、$3、$4、$5 作为变量。如果在 config.yml 中更改 'maxvariables' 的值,则可以定义超过 5 个变量。
可选参数:
你可以将参数定义为可选的。请看以下示例:
- /muco add exampleList /command $1 [$2]
- $1 是必需的,$2 是可选的
- /muco add exampleList /command [$1] [$2]
- $1 和 $2 都是可选的
- /muco add exampleList /command $1 [$2] $3 这不起作用!
- 这不起作用,会打印出错误信息。
- /muco add exampleList /command $1 [$3] $2
- $1 和 $2 是必需的,$3 是可选的
- 如果你想执行此命令,你必须输入:
- /muco exampleList $1 $2 [$3]
我希望这能让人理解。
预定义变量:
- $playername :执行命令的玩家名称
- $playerworld :执行命令的玩家当前所在的世界
- $serveronlineplayers :在线玩家数量(数字)
- $servermaxplayers:服务器的槽位上限
延迟:
- 你可以在列表中的命令之间添加延迟
- 只需在命令前加上 “[秒数]”(不要包含引号 "")
- 示例:
- /muco create testlist
- /muco add testlist /say 3
- /muco add testlist [1]/say 2
- /muco add testlist [1]/say 1
- /muco add testlist [1]/stop
- 输出将从 3 倒计时到 1,随后服务器停止
以控制台身份执行命令:
- 你可以明确地以控制台身份执行命令
- 只需在命令前加上 “[$c]”(也可以在延迟标记之前),该命令将以控制台身份执行
- 示例:
- [$c]/say I'm the console.
- [$c][2]/say I'm the console and I knew this message 2 secs before you saw it.
禁用命令:
你可以防止在 mucos 之外执行某些命令。但你也可以用它来一般性地禁用命令。
- 禁用命令:/muco disable disable <带斜杠的命令> - 需要权限 MultiCommand.disable.disable
- 重新启用命令:/muco disable enable <带斜杠的命令> - 需要权限 MultiCommand.disable.enable
- 列出所有已禁用的命令:/muco disable list - 需要权限 MultiCommand.disable.list
如果你禁用了 /say,那么 /say hey、/say omg 等命令也将被禁用。
如果你禁用了 /say hey,那么 /say hey you、/say hey all 等命令也将被禁用,但 /say hi 不会受影响。
拥有权限 MultiCommand.ignoreDisabledCommands 的玩家不会受到禁用命令的影响。
明白了吗? ;)
快捷方式:
现在支持控制台 :)
- 打开 /plugins/MultiCommand 中的 config.yml
- 编辑 Shortcuts 部分中的属性
- 一个示例:
Shortcuts: t: time kill: ban
- 如果你现在输入 /t set 13000,将执行命令 /time set 13000
- 这意味着你在 /t 之后输入的所有内容都会追加到 /time 后面
- 注意:这可能会覆盖现有的命令!
- 权限将由提供该命令的插件进行检查!
其他权限:
- 全部权限:MultiCommand.all
- 创建全部:MultiCommand.create.all
- 删除全部:MultiCommand.delete.all
- 显示全部:MultiCommand.show.all
- 支持所有主流权限系统
源代码:
Hello together!
This is a plugin that executes many commands with one simple command that can be configured. You can add parameters and define shortcuts like /t can execute /time.
Uses Metrics for sending completly anonomous data to for usage tracking. See mcstats.org and GitHub for more info.
Installation:
- Copy MultiCommand.jar in /plugins/
- Restart/reload server
Configuration/Usage:
- Creating a new command list:
- Type /muco create <name>
- Then add your commands with /muco add <name> <command>
- Important:
- Type your first command for executation first.
- Don't forget the /. If you execute the command list via console, the slash will be removed automatically
- Now type /muco <name> and the commands will be executed one after one.
Executing commands:
- Type /muco <name> - Requires MultiCommand.use.<name>
List all lists of commands:
- Type /muco list - Requires MultiCommand.list
List all commands in a list:
- Type /muco show <name> - Requires MultiCommand.show.<name>
Remove a command from a list of commands:
- Type /muco remove <name> <command with /> - Requires MultiCommand.remove.<name>
Delete a list of commands:
- Type /muco delete <name> - Requires MultiCommand.delete.<name>
Reload the config:
- Type /muco reload - Requires MultiCommand.reload
Parameters and variables:
One simple example:
- Type /muco create exampleList - Requires MultiCommand.create.exampleList
- Then: /muco add exampleList /time set $1
- Maybe: /muco add exampleList /say $1 $2
- Executation: /muco exampleList testVariable1 testVariable2
You can add $1, $2, $3, $4, $5 as variables for default. If you change the value for 'maxvariables' in the config.yml, you can define more than 5 variables.
Optional parameters:
You can define parameters as optional. Have a look at the following examples:
- /muco add exampleList /command $1 [$2]
- $1 is required, $2 is optional
- /muco add exampleList /command [$1] [$2]
- $1 and $2 are optional
- /muco add exampleList /command $1 [$2] $3 This doesn't work!
- This doesn't work. It will print out an error.
- /muco add exampleList /command $1 [$3] $2
- $1 and $2 are required, $3 is optional
- If you want to execute this you have to type:
- /muco exampleList $1 $2 [$3]
I hope this understandable.
Predefined variables:
- $playername : The name of the player that executes the command
- $playerworld : The current world of the player that executes the command
- $serveronlineplayers : Players, as a number, that are online
- $servermaxplayers: Slots of the server
Delays:
- You can add delays to commands in a list
- Just put "[time in seconds]" in front of a command (without "")
- Example:
- /muco create testlist
- /muco add testlist /say 3
- /muco add testlist [1]/say 2
- /muco add testlist [1]/say 1
- /muco add testlist [1]/stop
- The output will be a countdown from 3 to 1 and after it the server will stop
Executing commands as console:
- You can explicitly executing a command as console
- Just put "[$c]" in front of the command (in front of the delay, too) and the command will be executed as console
- Examples:
- [$c]/say I'm the console.
- [$c][2]/say I'm the console and I knew this message 2 secs before you saw it.
Disabling commands:
You can prevent commands from being execute outside of mucos. But you can use it for disabling commands in general, too.
- Disable a command: /muco disable disable <command with slash> - Requires MultiCommand.disable.disable
- Reenable a command: /muco disable enable <command with slash> - Requires MultiCommand.disable.enable
- List all disabled commands: /muco disable list - Requires MultiCommand.disable.list
If you disable /say the commands /say hey, /say omg etc. will be disabled, too.
If you disable /say hey the command /say hey you, /say hey all etc. will be disabled, too, but not /say hi.
The players with the permission MultiCommand.ignoreDisabledCommands will not be effected by disabled commands.
Allright? ;)
Shortcuts:
Now supported on console :)
- Open the config.yml in /plugins/MultiCommand
- Edit the properties in Shortcuts
- One Example:
Shortcuts: t: time kill: ban
- If you now type /t set 13000, the command /time set 13000 will be executed
- That means everything you type after /t will be added behind /time
- Note: This can override existing commands!
- Permissions will be checked by the plugin that provides the command!
Other Permissions:
- All Permissions: MultiCommand.all
- Create all: MultiCommand.create.all
- Delete all: MultiCommand.delete.all
- Show all: MultiCommand.show.all
- All major permission systems supported
Please consider donating using the following link:

Source:
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
下载 MultiCommand
- 1.7.10/1.8 更新
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组
评论 0
登录后参与评分
还没有评论,来抢沙发吧