Custom Commands Plugin - 创建你自己的服务器命令!
这个插件让你无需编程知识就能在服务器上创建专属的特殊命令。你可以创建发送消息的命令,甚至让某些命令成为已有命令的快捷方式。
安装方法:
- 下载插件文件。
- 重启你的服务器。
设置:
要创建你自己的命令,你需要打开并编辑 config.yml 文件。在该文件中,你会找到关于如何创建自定义命令的说明。
占位符:
这些就像特殊的标签,你可以用来让你的命令更加有趣:
{args} - 这将获取你在自定义命令之后输入的所有内容。
{player} - 这将自动填入使用该命令的玩家名称。
功能:
-
使用 {args} 在命令中接收参数:
你可以创建能够接收玩家额外字词或信息的命令。
示例: config.yml
adminhelp:
command: 'msg Admin {args}'
message: ''
如果一名玩家输入 /adminhelp I need help,该玩家将执行命令 /msg Admin I need help。
-
使用 {player} 显示玩家名称:
你可以在命令执行的内容中包含使用该命令的人员名称。
示例: config.yml
hello:
command: 'say Hello {player}'
message: ''
如果名为 "CoolGamer" 的玩家输入 /hello,该玩家将执行命令 /say Hello CoolGamer。
命令:
- /customcommands reload - 此命令指示插件重新加载其设置。因此,如果你更改了
config.yml 文件中的某些内容,可以使用此命令使更改生效,而无需重启整个服务器。
权限:
cc.reload - 拥有此权限的玩家可以使用 /customcommands reload 命令。通常只有服务器管理员拥有此权限。
自动补全:
安装插件、设置好自定义命令并重启服务器后,当你开始输入时,游戏会自动提示你的自定义命令!这让每个人更容易记住和使用新命令。
配置文件:config.yml
# [CustomCommand] Create own commands
prefix: "[&6CustomCommands&r] "
# All custom commands
# Create your own commands here
CustomCommands: # Don't touch this!
example: # Command trigger (/example)
command: 'tps' # The command to be executed
message: 'Example' # A message
Version: 3 # Don't touch this!
Custom Commands Plugin - Create Your Own Server Commands!
This plugin lets you make your own special commands on your server without needing to know how to code! You can create commands that send messages or even act like shortcuts for other commands that already exist.
Installation:
- Download the plugin file.
- Restart your server.
Setup:
To make your own commands, you need to open and edit the config.yml file. Inside that file, you'll find instructions on how to create your custom commands.
Placeholders:
These are like special tags you can use to make your commands more interesting:
{args} - This will take everything you type after your custom command.
{player} - This will automatically put the name of the player who used the command.
Features:
-
Use Arguments in Your Commands with {args}:
You can make commands that can take extra words or information from the player.
Example: config.yml
adminhelp:
command: 'msg Admin {args}'
message: ''
If a player types /adminhelp I need help, the player will run the command /msg Admin I need help.
-
Show the Player's Name with {player}:
You can include the name of the person who used the command in what the command does.
Example: config.yml
hello:
command: 'say Hello {player}'
message: ''
If a player named "CoolGamer" types /hello, the player will run the command /say Hello CoolGamer.
Commands:
- /customcommands reload - This command tells the plugin to reload its settings. So, if you change something in the
config.yml file, you can use this command to make the changes happen without restarting the whole server.
Permissions:
cc.reload - Players who have this permission can use the /customcommands reload command. Usually, server admins have this permission.
Autocomplete:
After you install the plugin and set up your custom commands, and then restart your server, the game will help you by suggesting your custom commands as you start typing them! This makes it easier for everyone to remember and use the new commands.
Config: config.yml
# [CustomCommand] Create own commands
prefix: "[&6CustomCommands&r] "
# All custom commands
# Create your own commands here
CustomCommands: # Don't touch this!
example: # Command trigger (/example)
command: 'tps' # The command to be executed
message: 'Example' # A message
Version: 3 # Don't touch this!
评论 0
登录后参与评分
还没有评论,来抢沙发吧