大家好,
我只是想写这段文字,说明一下我有一段时间没有发布资源更新了。该插件仍在维护中,如果有任何需要更新或优化以保持其正常运行的部分,我会进行更新并发布资源更新公告;但由于我的日程繁忙,我无法添加新功能。请注意,本项目并未被放弃,我仍在对其进行维护。
此致,
Bradydawg
我们现在接受关于 CommandNPC 的建议!您可以在此处提出新功能建议:
CommandNPC 是一个受 Mineplex 服务器启发的插件,为 NPC 添加了新功能。它允许用户只需右键点击 Citizens NPC 即可运行命令。需要 Citizens 2!需要 Java 8!
命令与权限
(现已支持 PlaceholderAPI)
要设置带有命令的 NPC,你需要 'commandnpc.admin' 权限
请注意,对于需要额外输入的标记(如 [--v price]),你需要使用两个连字符(-)!
- /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 时,不发送无权限消息。
- -l 标记当设为 true 时,不发送余额不足消息。
- --v 标记在运行命令时向玩家收取指定金额。(数值带小数点)
- --p 标记要求玩家拥有指定的权限。
- --d 标记是命令延迟的刻数。(整数输入)
- --cd 标记是命令的冷却时间(单位:刻)。1秒=20刻。
- --t 标记设置点击类型('left'、'right' 或 'both')| 这将默认为 config.yml 中的全局设置。
- /npc cmdinfo [id] - 获取所有 NPC 命令的各种信息
- 如果你包含命令 'id',它将仅显示该命令的信息。
- 你可以从使用 'cmdinfo' 命令获得 'id'。
- /npc cmdremove <id> - 移除特定命令
- 你可以从使用 'cmdinfo' 命令获得 'id'。
- /npc cmdset [-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 时,不发送无权限消息。
- -l 标记当设为 true 时,不发送余额不足消息。
- --v 标记在运行命令时向玩家收取指定金额。(数值带小数点)
- --p 标记要求玩家拥有指定的权限。
- --d 标记是命令延迟的刻数。(整数输入)
- --cd 标记是命令的冷却时间(单位:刻)。1秒=20刻。
- --t 标记设置点击类型('left'、'right' 或 'both')。
- 你可以从使用 'cmdinfo' 命令获得 'id'。
- /npc cmdreset - 移除所选 NPC 上的所有命令。
- 你可以在命令中使用 '%name' 作为点击 NPC 的用户占位符。
- 该插件现在支持 BungeeCord 命令。你现在可以使用 'server <serverName>' 来在不同服务器之间传送玩家!
如何设置 NPC
- 根据你的喜好编辑 config.yml
- 选择你希望添加命令的 NPC。
- 使用 'cmdadd' 命令(语法见上文)添加你想要的命令。
- 这些命令将被保存。
- 如果你想移除命令,只需使用 'resetcmds' 命令即可。(语法见上文)
bStats 指标统计
Github
关于我:
嘿!我叫 Bradydawg。我是一名全栈开发者、系统管理员和“Ubuntu 爱好者”。我曾参与运营、拥有、开发和管理过无数服务器,并且多年来一直为 Spigot/Bukkit 开发插件。我对 CommandNPC 的使命是为 Spigot 社区提供支持和更新。在它们被弃坑之前,我已经使用这个插件以及另一个由我提供支持的服务端列表 MOTD 插件(ServerListMOTD)多年。在被弃坑后,我决定接手它们并继续保持免费,因为在 Spigot 上找到你正在寻找的精确插件,同时发现它完全支持最新版本且免费,这是再好不过的体验了。如果你能给我的插件留下好评,我将不胜感激,因为这真的是表达对我所做工作的唯一方式。希望你享受 CommandNPC!
Hello all,
I just wanted to type this out and address the fact that I haven't posted a resource update in a while. The plugin is still being supported, and if anything needs to be updated or optimized to keep it running properly, I will update it and post a resource update, but due to my busy schedule, I have not been able to add new features. Please note that this project is NOT abandoned, and I am still maintaining it.
Yours truly,
Bradydawg
We are now accepting suggestions for CommandNPC! You can suggest new features here:
CommandNPC is a plugin inspired by the server Mineplex, which adds a new function to NPCs. It allows users to run commands by simply right clicking on a Citizens NPC. Requires Citizens 2! REQUIRES JAVA 8!
Commands and Permissions
(Now supports PlaceholderAPI)
To set up the npc with the commands you need the permission 'commandnpc.admin'
Be aware that flags that require additional input like [--v price], you need 2 dashes(-)!
- /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 [-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!
How to setup the NPC
- 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
Github
About Me:
Hey! My name is Bradydawg. I'm a full stack developer, systems administrator, and "ubuntu goon". I've staffed on, owned, developed, and managed countless servers, and I've been developing plugins for Spigot/Bukkit for years. My mission for CommandNPC is to essentially provide support and updates for the Spigot community. I used this plugin, and ServerListMOTD (another plugin I provide support for) for years before they were abandoned. After they were abandoned, I decided to pick them up, and keep them free, because there's nothing better than finding the exact plugin you're looking for on Spigot, AND finding out that it's fully supported up to the latest version, AND free! I'd really appreciate it if you left a good review on my plugins, as that's really the only way of showing me that you appreciate what I'm doing. I hope you enjoy CommandNPC!
评论 0
登录后参与评分
还没有评论,来抢沙发吧