-
/npc cmdadd [-c console] [-o Op] [-r random] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] <command...> - 添加一个在点击所选 NPC 时执行的命令。
-
-c 标识符通过控制台运行命令。
-
-o 标识符以 OP 身份运行命令。
- -r 标识符随机选择一个命令并仅执行该命令。
- -i 标识符为 true 时,不发送 noPerm 消息
- -l 标识符为 true 时,不发送 noMoney 消息
- --v 标识符在运行命令时向玩家收取指定金额。(带小数的数字)
-
--p 标识符要求玩家拥有指定的权限。
- --d 标识符是命令延迟的刻数。(整数输入)
- --cd 标识符是命令的冷却时间(以刻为单位)。(每秒 20 刻)
- --t 标识符设置 clickType('left'、'right' 或 'both')| 这将默认为 config.yml 中的全局设置
-
-
/npc cmdinfo [id] - 获取所有 NPC 命令的各种信息
-
如果你包含命令 'id',它将仅显示该命令的信息。
- 你可以使用 'cmdinfo' 命令获取 'id'
-
-
/npc cmdremove <id> - 移除特定命令
- 你可以使用 'cmdinfo' 命令获取 'id'
-
/npc cmdset <id> [-c console] [-o Op] [-r random] [-m cdMsg] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] [command | cdMsg...] - 设置命令的各种变量
-
-c 标识符通过控制台运行命令。(这将在 true/false 之间切换)
- -o 标识符以 OP 身份运行命令。(这将在 true/false 之间切换)
- -r 标识符随机选择一个命令并仅执行该命令。
- -m 标识符用于当你指定了冷却时间时。当玩家处于冷却状态并尝试使用 NPC 时,它会向他们发送此消息。(用法:/npc cmdset -m [cdMsg...])注意:使用其他标识符时,cdMsg 必须是命令中的最后内容。
- -i 标识符为 true 时,不发送 noPerm 消息
- -l 标识符为 true 时,不发送 noMoney 消息
- --v 标识符在运行命令时向玩家收取指定金额。(带小数的数字)
- --p 标识符要求玩家拥有指定的权限。
- --d 标识符是命令延迟的刻数。(整数输入)
- --cd 标识符是命令的冷却时间(以刻为单位)。(每秒 20 刻)
- --t 标识符设置 clickType('left'、'right' 或 'both')
- 你可以使用 'cmdinfo' 命令获取 'id'
-
-
/npc cmdreset - 从所选 NPC 中移除所有命令。
-
你可以在命令中使用 '%name' 作为点击 NPC 的用户占位符。
- 此插件现在支持 BungeeCord 命令。你现在可以使用 'server <serverName>' 在服务器之间传送人员!
-
根据你的喜好编辑 config.yml
-
选择你想要添加命令的 NPC。
-
使用命令 'cmdadd'(语法如上所述)添加你想要的命令。
-
这些命令将被保存。
-
如果你想移除命令,只需使用 'resetcmds' 命令即可。(语法如上所述)
bStats 指标
-
/npc cmdadd [-c console] [-o Op] [-r random] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] <command...> - Add a command to be executed upon clicking the selected NPC.
-
The -c flag runs the command through the console.
-
The -o flag runs the command as an op.
- The -r flag picks a random command and executes that one command only.
- The -i flag when true, noPerm message doesn't send
- The -l flag when true, noMoney message doesn't send
- The --v flag charges the player the specified amount, when running the command. (Numeric with decimal)
-
The --p flag requires the player to have the specified permission.
- The --d flag is the amount of ticks that the command will be delayed by. (Integer input)
- The --cd flag is a cooldown for the command in ticks. (20 ticks in a second)
- The --t flag sets the clickType('left', 'right', or 'both') | This will default to the global setting in config.yml
-
-
/npc cmdinfo [id] - Gets various information about all the NPC commands
-
If you include the command 'id' it will only show information for that command.
- You get the 'id' from using the 'cmdinfo' command
-
-
/npc cmdremove <id> - Removes a specific command
- You get the 'id' from using the 'cmdinfo' command
-
/npc cmdset <id> [-c console] [-o Op] [-r random] [-m cdMsg] [-i ignorePermMsg] [-l ignoreMoneyMsg] [--v price] [--t clickType] [--d delay] [--cd cooldown] [--p custom.permission.node] [command | cdMsg...] - Set various variables for the command
-
The -c flag runs the command through the console. (This will toggle between true/false)
- The -o flag runs the command as an op. (This will toggle between true/false)
- The -r flag picks a random command and executes that one command only.
- The -m flag is when you have a cooldown amount specified. When the player is in a cooldown and attempt to use the NPC, it will send them this message. (Usage: /npc cmdset -m [cdMsg...]) Note: When using other flags the cdMsg as to be the last things within the command.
- The -i flag when true, noPerm message doesn't send
- The -l flag when true, noMoney message doesn't send
- The --v flag charges the player the specified amount, when running the command. (Numeric with decimal)
- The --p flag requires the player to have the specified permission.
- The --d flag is the amount of ticks that the command will be delayed by. (Integer input)
- The --cd flag is a cooldown for the command in ticks. (20 ticks in a second)
- The --t flag sets the clickType ('left', 'right', or 'both')
- You get the 'id' from using the 'cmdinfo' command
-
-
/npc cmdreset - Remove all commands from the selected NPC.
-
You can use '%name' in commands as a placeholder for the user who is clicking the NPC.
- This plugin now supports a BungeeCord command. You may now use 'server <serverName>' to teleport people between servers!
-
Edit config.yml to your likings
-
Select the NPC you wish to add commands too.
-
Use the command 'cmdadd' (Syntax listed above) to add the commands you wish.
-
These commands will be saved.
-
If you wish to remove the commands simply use the 'resetcmds' command. (Syntax listed above)
Metrics by bStats
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
下载 CommandNPC
需要联机服务器吗?
稳定流畅、一键部署,几分钟即可和朋友联机开服
最低仅需 8 元/月 即可畅快联机
- 为 'cmdadd' 和 'cmdset' 添加了 '-i' 参数(当值为 true 时,不发送 noPerm 消息)
- 为 'cmdadd' 和 'cmdset' 添加了 '-l' 参数(当值为 true 时,不发送 noMoney 消息)
- 为命令添加了 PlaceholderAPI 支持
- 修复了提示 'cmdset' 中 '-r' 为无效参数的错误
- 更改了对 BungeeCord 命令 'server' 使用不当时的错误日志记录方式
- 更新 commands.yml 至 v1.9.1(向后兼容)
- 优化了数据库加载序列(不再检查所有旧版配置,而是优先检查最新版本,从而略微提升速度)
- 感谢 hexosse 提交 pom.xml 优化方案
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
使床在所有维度中爆炸的模组
插件
为 Armor Poser 模组添加兼容性
插件
SkyBlock、OneBlock、Boxed、SkyGrid、AcidIsland、CaveBlock、Poseidon、StrangerRealms——以及更多!这些只是由 BentoBox 支持的基于岛屿的游戏模式之一。来自原版 ASkyBlock 的作者。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
评论 0
登录后参与评分
还没有评论,来抢沙发吧