ButtonPromote - 使用按钮/压力板为玩家提供多种功能!

版本:v3.1.0(由 Furt 更新)- 2015年7月18日
源代码 |
问题追踪器 |
常见问题解答 (FAQ) |
测试构建版 |
加入 IRC 频道 @ irc.esper.net/5555 #buttonpromote
ButtonPromote 允许使用简单且易于记忆的命令,让点击按钮的玩家获得提升、接收消息、获取/扣除货币、获取/扣除物品,以及被传送至指定地点。
功能特性:
- 使用按钮/压力板提升按下它们的玩家权限组
- 使用按钮/压力板向玩家发送消息
- 使用按钮/压力板将玩家传送至其他位置
- 使用按钮/压力板执行命令
- 使用按钮/压力板给予/扣除物品
- 使用按钮/压力板给予/扣除货币
- 可设置按钮/压力板仅能使用一次
- 支持多世界兼容
- 支持通过 Vault 进行权限管理和经济系统对接
依赖项
必需:
- Vault
- 权限插件 - 推荐使用 PermissionsEX
可选:
- 经济插件
命令:
- /bp - 在游戏中显示可用命令。
- /bp setpromotion <group> - 输入此命令,然后按下按钮,使其将用户提升至指定权限组。
- /bp setmessage <message> - 输入此命令,然后按下按钮,使其向玩家发送您的消息。支持颜色代码和空格!
用法示例: - "/bp setcommand tp %p furt-slap furt" 这将把点击按钮的玩家传送到 furt 处并让他扇自己一巴掌
- "/bp setmessage Hello!-Welcome to the server!-Enjoy your stay!" 这将输出:
- Hello!
- Welcome to the server!
- Enjoy your stay!
- /bp setcommand <command> - 输入此命令,然后按下按钮,使其对玩家执行一条命令。
- /bp setwarp - 在您想要的位置输入此命令,然后按下按钮,使其将用户传送至该位置。
- /bp setpermission <permission.touse> - 用于为每个按钮设置自定义权限。
- /bp setitem <give/take> <itemname> <amount> - 用于从右键点击按钮的玩家那里给予或扣除物品。
- /bp setcurrency <give/take> <amount> - 用于从右键点击按钮的玩家那里给予或扣除货币。
- /bp setusage <true/false> - 此功能用于设置按钮为一次性使用。
- /bp remove - 输入此命令,然后按下按钮以移除权限提升和传送点配置。
- /bp confirm - 在方块被破坏时确认移除按钮配置。
- /bp cancel - 取消所有当前选择。
权限节点:
- buttonpromote.use - 使用提升器和传送按钮的权限。
- buttonpromote.create - 使用 /bp set 和 /bp setwarp 命令的权限。
- buttonpromote.remove - 使用 /bp remove 命令的权限。
配置文件:
# 将此设置为 true 以使按钮提升添加权限而非替换现有权限 keepOldGroups: false # 将此设置为 true 以使所有创建的按钮均为一次性使用 globalOneTimeUse: false # 将此设置为 true 以使按钮命令由控制台执行而非玩家执行 consoleCommands: false # 传送预热时间,单位为秒 warpTimer: 3
待办事项 / 即将推出的功能:
- 请提出您对更多功能的建议!
更新日志:
v3.0.0
- 更新至 Minecraft 1.5.2
- 修复了某些情况下配置文件生成的问题。
- 添加了所有新的按钮和压力板类型。
v2.2.2
- 在配置文件中添加了使命令由控制台而非玩家执行的选项
v2.2.1
- 解决了 /bp setitem take 的大部分问题,如果玩家没有所需物品或数量,此功能现在会取消按钮事件。
v2.2
- 为以下设置添加了配置文件:
- globalOneTimeUse - 默认值:false - 如果设置为 true,这将导致所有新创建的按钮都启用一次性使用功能。
- keepOldGroups - 默认值:false - 如果设置为 true,当使用提升按钮时,将保留玩家原有的权限组而不是移除它们。
- 新功能:
- ButtonPromote 现在支持压力板!
- 您现在可以设置多条消息和命令
- /bp setcommand 现在支持变量,可用于标记玩家名称或世界名称。玩家名称 = %p,世界名称 = %w
ButtonPromote - Use buttons/pressureplates to give users various features!

Version: v3.1.0 (Updated by Furt) - 7/18/15
Sourcecode |
Issue Tracker |
FaQ |
Test Builds |
Join me on IRC @ irc.esper.net/5555 #buttonpromote
ButtonPromote allows the use of simple and easy-to-remember commands to make your buttons promote, message, give/take currency, give/take items, and/or warp the players who click them.
Features:
- Use buttons/pressureplates to promote players who press them
- Use buttons/pressureplates to send messages to players
- Use buttons/pressureplates to warp players to another location
- Use buttons/pressureplates to perform commands
- Use buttons/pressureplates to give/take items
- Use buttons/pressureplates to give/take currency
- Can set buttons/pressureplates to only be used once
- Multi-world compatibility
- Vault support for permissions and economy
Dependencies
Required:
- Vault
- Permission plugin - PermissionsEX recommended
Optional:
- Economy plugin
Commands:
- /bp - Shows commands in-game.
- /bp setpromotion <group> - Type this command, then press a button to make it promote users to specified group.
- /bp setmessage <message> - Type this command, then press a button to make it send your message to players. Colorcodes and spaces do work!
Uses: - "/bp setcommand tp %p furt-slap furt" This will tp the player clicking the button to furt then slap him
- "/bp setmessage Hello!-Welcome to the server!-Enjoy your stay!" This will output:
- Hello!
- Welcome to the server!
- Enjoy your stay!
- /bp setcommand <command> - Type this command, then press a button to make it perform a command on a player.
- /bp setwarp - Type this command at the location you want, then press a button to make it warp users to that location.
- /bp setpermission <permission.touse> - This is used to give custom permissions per button.
- /bp setitem <give/take> <itemname> <amount> - This is used to give/take items from a player that right clicks it.
- /bp setcurrency <give/take> <amount> - This is used to give/take currency from a player that right clicks it.
- /bp setusage <true/false> - This feature is for giving a button a one time use.
- /bp remove - Type this command, then press a button to remove promotions and warps.
- /bp confirm - Confirms button removal on block break.
- /bp cancel - Cancels all current selections.
Permissions:
- buttonpromote.use - Permission to use promoter and warper buttons.
- buttonpromote.create - Permission to use /bp set and /bp setwarp commands.
- buttonpromote.remove - Permission to use /bp remove command.
Configuration:
# Set this to true to make buttom promote add to permissions instead of replace keepOldGroups: false # Set this to true to make every button created one time use globalOneTimeUse: false # Set this to true to make buttons use console for commands instead of player consoleCommands: false # Warm up time for warp, in seconds warpTimer: 3
To-do / Upcoming Features:
- Give me your suggestions for more features!
Changelog:
v3.0.0
- Updated to 1.5.2
- Fixed config generation in some cases.
- Added all new buttons and pressure plates.
v2.2.2
- Added the ability to make commands use console instead of player in the config
v2.2.1
- Resolved most issues with /bp setitem take, this feature now cancels the button event if they do not have the required item or amount.
v2.2
- Added a config file for the following:
- globalOneTimeUse - Default: false - If set to true this will cause all buttons newly created to be set to true for one time use feature.
- keepOldGroups - Default: false - If set to true this will keep old groups a player has instead of removing them with a promotion button is used.
- New Features:
- ButtonPromote now supports pressureplates!
- You can now set multiple messages and commands
- /bp setcommand now has variables that can be used to mark player name or world name player name = %p and world name = %w
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
下载 ButtonPromote
更新日志:
v3.0.0
- 已更新以兼容 v1.5.2
- 添加了全新按钮和压力板。
v2.2.2
- 在配置文件中添加了允许命令使用控制台而非玩家执行的功能
v2.2.1
- 解决了 /bp setitem take 的大多数问题;如果玩家没有所需的物品或数量,此功能现在会取消按钮事件。
v2.2
为以下内容添加了配置文件:
- globalOneTimeUse - 默认值:false - 如果设置为 true,这将导致所有新创建的按钮都启用一次性使用功能。
- keepOldGroups - 默认值:false - 如果设置为 true,这将保留玩家原有的组,而不是在使用促进按钮时移除它们。 新功能:
- ButtonPromote 现在支持压力板!
- 你现在可以设置多条消息和命令
- /bp setcommand 现在拥有可用于标记玩家名称或世界名称的变量:玩家名称 = %p,世界名称 = %w 用途:
- "/bp setcommand tp %p furt-slap furt" 这会将点击按钮的玩家传送至 furt,然后对他进行 slap 操作
- "/bp setmessage Hello!-Welcome to the server!-Enjoy your stay!" 这将输出:
- Hello!
- Welcome to the server!
- Enjoy your stay!
v2.1.1
修复:
- 修复了一次性使用功能的空指针异常 (NPE)。
- 为 /bp setcurrency 添加了玩家消息提示
- 修复了新功能在完成选择后未清除选中的问题。
v2.1
- 新增命令 /bp usage <boolean> - 启用一次性使用功能
- 新增命令 /bp setcurrency <give/take> <amount> - 使按钮能够给予/扣除货币!
- 新增命令 /ba setitem <give/take> <itemname> <amount> - 使按钮能够给予/扣除物品!
更新:
- 更新了 API 以减少冗余
- 开始添加 JavaDoc 文档
修复:
- 修复了因右键点击促进按钮而导致玩家拥有多个组的问题
v2.0
所有功劳归于 Furt!
- 完全重写插件以使用 Bukkit EBean 持久化(“MySQL 或 SQLite”)
- 新增命令 /bp setcommand <command> - 使按钮执行命令
修复:
- 修复了重启后按钮无法工作的问题
- 修复了按钮仅对 OP 玩家有效的问题
v1.2
- 按钮现在可以向玩家发送消息
- 消息支持颜色代码
- 现在使用 Vault 进行权限管理
- 大量代码清理
- 修复了一个 bug:带有传送点但没有提升功能的按钮无法保存
- 现在有三个独立的数据文件:promotions.dat、messages.dat 和 warps.dat
- 更改并添加了命令:
- /bp setmessage <message> - 使按钮发送消息
- /bp setpromotion <group> - 使按钮提升玩家所属组
- /bp reload - 重新加载数据文件
v1.0
- 初始版本发布
当将按钮设置为右键点击时给予/扣除物品时,物品不会立即显示,但如果再次左击或重新登录,物品就会显示。
如果按钮设置为扣除物品,它将检查快捷栏中的第一个堆叠,因此请确保该堆叠有足够的物品以满足按钮需求。
关于这个资源的讨论、问题反馈与使用心得
还没有讨论,来发第一帖吧
你是这个资源的作者?登录后可认领此资源。
相似资源
插件
ExyliaPlugins 的库。
插件
重新定义服务器上的生物运输方式。使用高度可定制的口袋道具,安全地捕获、存储和释放任何实体。
插件
一个在游戏内运行的 Minecraft 地图编辑器! 支持选区、蓝图、复制粘贴、笔刷和脚本。 可在创造模式中使用,也可在生存模式中临时使用。
插件
创建用户友好的菜单以前往不同的世界
插件
专为 Velocity 打造的自制聊天插件,功能丰富——支持跨服群组/全局/私聊消息,并集成 LibertyBans 的禁言功能。
插件
一个高度兼容、功能完善且稳定的 TPA 模组

评论 0
登录后参与评分
还没有评论,来抢沙发吧