是否曾想过只需点击按钮即可执行命令?那么这里就是解决方案!SignEXE 允许你通过告示牌、按钮和拉杆来执行命令。
以下是配置方法。你也可以在服务器上输入 /signexe 打开帮助页面。
工作原理
玩家告示牌 (Playersign)
在告示牌的第一行写入 [SignEXE],其余行写入命令。当玩家右键点击时,他将执行这些行上的命令。
控制台告示牌 (Consolesign)
在告示牌的第一行写入 [SignEXE] C,其余行写入命令。当玩家右键点击时,控制台将执行该命令。
按钮与拉杆
放置一个按钮或拉杆。然后对着它按下 /setcmd <不带斜杠的命令>。当玩家与之交互时,他将执行该命令。
如果你希望由控制台执行命令,只需使用 /setconsolecmd <不带斜杠的命令>。
变量
自 v1.4 起,你可以在命令中插入变量 @p。它将被替换为点击者的玩家名称。
示例:
- /setcmd say @p 刚刚点击了按钮。
- /setconsolecmd gamemode @p 1
(此功能在告示牌上不可用,我可能会后续添加)
权限
- signexe.create -> 允许你创建玩家告示牌。
- signexe.use -> 允许你使用玩家告示牌。
- signexe.console.create -> 允许你创建控制台告示牌。
- signexe.console.use -> 允许你使用控制台告示牌。
- signexe.cmdexecutor.create -> 允许你执行 /setcmd 命令。
- signexe.cmdexecutor.use -> 允许你使用带有命令的按钮/拉杆。
- signexe.cmdexecutor.console.create -> 允许你执行 /setconsolecmd 命令。
- signexe.cmdexecutor.console.use -> 允许你使用带有控制台命令的按钮/拉杆。
- signexe.cmdexecutor.break -> 允许你通过命令/控制台命令来破坏带有命令的控制台命令按钮/拉杆。
Did you ever want to perform commands just by clicking on buttons? Then here is the solution! SignEXE allows you to execute commands with signs, buttons and levers.
Below you can see how to set them up. Also you can open the help page by doing /signexe on your server.
How it works
Playersign
Write [SignEXE] on the 1st line of a sign, and a command on the others. If a player rightclicks it, he performs the command on the lines.
Consolesign
Write [SignEXE] C on the 1st line of a sign and a command on the others. If a player rightclicks it, the console performs the command.
Button and lever
Place down a button or lever. Then look at it and do /setcmd <command without / >. If a player interacts with it, he performs the command.
If you want the console to perform the command, just do /setconsolecmd <command without />.
Variable
Since v1.4 you can insert the variable @p into commands. It will be replaced with the name of the player who clicked.
Example:
- /setcmd say @p just clicked the button.
- /setconsolecmd gamemode @p 1
(Doesn't work on signs, I may add it too)
Permissions
- signexe.create -> Allows you to create a playersign.
- signexe.use -> Allows you to use a playersign.
- signexe.console.create -> Allows you to create a consolesign.
- signexe.console.use -> Allows you to use a consolesign.
- signexe.cmdexecutor.create -> Allows you to perform /setcmd
- signexe.cmdexecutor.use -> Allows you to use a button/lever with a command on it.
- signexe.cmdexecutor.console.create -> Allows you to perform /setconsolecmd
- signexe.cmdexecutor.console.use -> Allows you to use a button/lever with a consolecommand on it.
- signexe.cmdexecutor.break -> Allows you to destroy a button/lever with a command/consolecommand on it.
评论 0
登录后参与评分
还没有评论,来抢沙发吧