本插件利用并扩展了 SimpleCommandSigns,通过存储一个隐藏的指令数据库来实现。为了保持 SimpleCommandSigns 的简洁和轻量,我们将这些额外功能单独分离出来。
功能特性:
- 你不再需要在告示牌本身包含要执行的指令。
- 你可以按顺序执行多个指令。
- 你可以列出玩家在运行指令时所需的权限,这些权限将在指令执行期间临时授予玩家。
- 你可以设置权限节点,允许玩家查看告示牌背后真实的指令。
- 真实指令与告示牌上的文本相关联,而不是与告示牌方块关联。这意味着移除或修改告示牌方块不会造成任何问题。具有相同文本的 HiddenCommandSigns 将运行相同的指令。
- 你可以让 HiddenCommandSigns 看起来与普通 CommandSign 完全一样。
- 如果你了解格式规范,可以手动编辑人类可读的数据库文件。(但不推荐)
如何创建 HiddenCommandSign:
- 像往常一样创建一个 SimpleCommandSign。通常用于存放指令的那些行现在可以是任意文本。
- 使用:/hcs create "<command>"(注意:如果你的指令中包含引号,请将其替换为 "\''" —— 即:反斜杠、单引号、单引号)
- 如果运行告示牌的人需要额外的权限才能执行该指令,请使用:/hcs addperm "<permission>"
- 右键点击告示牌,你指定的指令就会被执行!
指令:
- /hcs create "<command>" ["othercommands"] - 在括号内创建带有给定指令的 hiddencommandsign。(示例:/hcs create "/cp points" "/day")
- /hcs detect - 告诉你下一个击打的方块是否是 hiddencommandsign 及其作者。
- /hcs obtainreal - 告诉你右键点击告示牌时将运行的真实指令。
- /hcs addperm "<permission>" ["otherpermissions"] - 向告示牌添加指定的权限。它们将在玩家运行指令前立即授予,并在之后立即移除。(示例:/hcs addperm "CommandPoints.give")
- /hcs quickcreate - 如果 simplecommandsign 上的文本已经链接到隐藏指令序列,此指令可将其转换为带有原始指令的 hiddencommandsign。
权限:
- hcs.create: 可以创建隐藏指令告示牌。
- hcs.detect: 可以检测并获取隐藏指令告示牌的创建者。
- hcs.obtainreal: 可以获取告示牌背后的真实指令。
- hcs.addperm: 可以向告示牌添加权限。
- hcs.addperm.any: 可以向告示牌添加任何权限,包括他们不拥有的权限。
注意:如果你不使用 Legacy Permissions 作为你的权限处理程序,并且想要能够使用 "/hcs addperm",请移除任何 Permissions 兼容桥接插件(例如 Essentials 中的那个)。
This plugin utilizes and adds to SimpleCommandSigns by storing a hidden commands database. Because we wish to keep SimpleCommandSigns simple and lightweight, we kept these extra features separate.
Features:
- You no longer need to have the command(s) being executed on the sign itself.
- You can have multiple commands run in sequence.
- You can list the permission(s) you wish the player to have when running the command and they will be granted temporarily during command execution.
- You can set permissions nodes allowing players to view the true commands behind the sign.
- The true commands are linked to the text on the sign rather than the sign block. This means there will be no issues with sign block removal and modification. Hiddencommandsigns with the same sign text will run the same commands.
- You can make the hiddencommandsigns look exactly like a normal commandsign.
- If you understand the formatting, you can manually edit the human-readable database file. (Not recommended though)
How to create a HiddenCommandSign:
- Create a SimpleCommandSign as you normally would. The text on the lines that usually holds the command can be anything arbitrary now.
- Use: /hcs create "<command>" (Note: If your command contains quotation marks, replace them with "\''" - that is: forward slash, single quote, single quote)
- If the people running the sign need additional permissions to run the command, use: /hcs addperm "<permission>"
- Right click the sign and the command(s) you specified will be run!
Commands:
- /hcs create "<command>" ["othercommands"] - Creates a hiddencommandsign with the command(s) given within parenthesis. (Example: /hcs create "/cp points" "/day")
- /hcs detect - Tells you if the next block you hit is a hiddencommandsign and its author.
- /hcs obtainreal - Tells you the real command that will run when you right-click the sign.
- /hcs addperm "<permission>" ["otherpermissions"] - Adds the specified permissions to the sign. They will be given to the player right before they run the command, and removed immediately after. (Example: /hcs addperm "CommandPoints.give")
- /hcs quickcreate - If the text on a simplecommandsign already has a hidden command sequence linked to it. This allows you to turn it into a hiddencommandsign with the original commands.
Permissions:
- hcs.create: Can create a hidden command sign.
- hcs.detect: Can detect and get the creator of hidden command signs.
- hcs.obtainreal: Can get the real command behind the sign.
- hcs.addperm: Can add permissions to a sign.
- hcs.addperm.any: Can add any permissions to a sign, including those which they do not own.
Note: If you do not use Legacy Permissions as your permissions handler, remove any Permissions compatibility bridge (such as the one from Essentials) if you want to be able to use "/hcs addperm".
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
下载 HiddenCommandSigns
修复了对旧版 SCS 权限的检查
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
PacketEvents 是一款专为 Minecraft Java 版打造的协议库,旨在简化数据包的处理与传输。
插件
ExyliaPlugins 的库。
插件
通过对话框或铁砧界面帮助你的 Anthme
插件
自定义你的Minecraft头像!
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
为基于 Spigot/Paper/Folia 的服务器添加对 Vivecraft 的支持
评论 0
登录后参与评分
还没有评论,来抢沙发吧