asCMD 盔甲架指令 非常适合大厅服务器!
最简单的插件添加命令到装甲站!
点此下载插件详细介绍
Armor Stand Commands (ASCmd) 插件允许玩家通过右键点击盔甲架来执行命令。它还提供了盔甲架保护功能,防止破坏和物品盗窃。只有绑定了命令的盔甲架才会被保护。
🛡️Armor Stand Commands (ASCmd)
✨功能特性
- 为盔甲架添加命令
- 保护盔甲架
⚙️命令
/ascmd edit- 切换编辑模式。只有在编辑模式下,才能编辑盔甲架上的物品并破坏盔甲架。/ascmd addcmd [rRlL] <method> <command>- 为盔甲架添加命令。/ascmd clear- 清除盔甲架上的命令。/ascmd info- 将盔甲架上的所有命令输出到聊天窗口。/ascmd reload- 重载配置文件。/ascmd config <key> <value>- 在不手动编辑 config.yml 文件的情况下,设置配置项的值。可用的键包括:msgToConsole、enableLeftClick 或 cooldownMs。/ascmd update- 检查新更新。
🔑权限
ascmd.admin- 用于所有子命令的权限。ascmd.update- 用于在有可用更新时接收通知的权限。
📝用法
添加命令
使用 /ascmd addcmd <console/player> <command>
例如: /ascmd addcmd console say %player% is the best
可以使用 %player% 占位符,它将被点击盔甲架的玩家的昵称替换。
- 右键点击盔甲架以添加命令。
- 完成。
添加 BungeeCord 服务器传送
使用 /ascmd addcmd bungee <servername>
例如: /ascmd addcmd bungee kitpvp
- 右键点击盔甲架以添加命令。
- 完成。
清除命令
使用 /ascmd clear
- 右键点击盔甲架以删除所有命令。
- 完成。
添加仅适用于右/左键单击的命令
添加仅在右键单击时有效的命令:
/ascmd addcmd rR console say Clicked with RMB
r- 启用不按住 Shift 键(潜行)的右键单击。R- 启用按住 Shift 键(潜行)的右键单击。
添加仅在不按住 Shift 键的情况下左键单击时有效的命令:
/ascmd addcmd l bungee survival
l- 启用不按住 Shift 键(不潜行)的左键单击。
添加仅在按住 Shift 键(潜行按钮)的情况下单击时有效的命令:
/ascmd addcmd LR player me is sneaky
L- 启用潜行时的左键单击。R- 启用潜行时的右键单击。
您可以根据需要组合所有内容,您可以添加一些命令以在左键单击时运行,并在同一盔甲架上添加其他命令以在右键单击时运行。
如果省略任何过滤字母 (rRlL),该命令将适用于所有类型的点击。
为了使左键单击工作,您必须在配置中启用 'enableLeftClick' 选项。
所有旧的盔甲架命令都可以像以前一样完全工作 - 此更新完全向后兼容。
方法
console- 指定的命令将从控制台执行。player- 指定的命令将由点击盔甲架的玩家执行。bungee- 指定的服务器会将玩家传送到。例如:/ascmd addcmd bungee kitpvp会将玩家发送到名为 kitpvp 的 BungeeCord 服务器。
⚙️配置
format-version: '2' # Do not ever change this
config:
msgToConsole: true # If true, you will get messages to console about executed command on click on an armor stand
enableLeftClick: false # If true, players will be able to leftclick the armor stands. It will work the same like the player right clicked the armor stand
cooldownMs: 100 # Cooldown in milliseconds needed between armor stand clicks (per player). If you set this for example to 1000, a player can use armor stand at most once a second.
您可以反编译插件(但请不要声称这是您自己的作品,链接到 spigotmc 资源就足够了)。您可以在此页面上发布建议,也许我会在下一个版本的插件中添加一些建议。该插件可能适用于其他版本,但我没有对其进行测试。顺便说一句,此插件是我制作的第一个插件。
🤝兼容性
与 plugin.yml 和 PlayerCommandPreprocessEvent 命令兼容。
里程碑
- 2^8 下载 <3
- 2^9 下载 <33
- 2^10 (1024) 下载 <333
- 2^11 (2048) 下载 感谢大家!
- 2^12 (4096) 下载 哇!
- 2^13 (8192) 下载 谢谢大家!
- 2^14 (16384) 下载 太棒了!
- 2^15 (32768) 下载 不错!