ItemBanner
此插件允许你为背包中特定物品材料设置硬性数量上限,适用于需要强制限制特定装备组(kit)或禁止某些物品的场景。由于其他解决方案容易被绕过或利用,且并非开源,出于无奈我决定开发这个插件。
如有任何问题、功能请求或遇到错误,请随时通过我的支持 Discord 联系我:
配置文件中有两个选项:
debug: false
action-on-excess: drop # 有效选项:drop(掉落) & remove(移除)
debug 选项目前在代码中未使用,正等待未来实现,以便在出现问题时进行调试。action-on-excess 选项允许你指定超出限制的已禁用物品是被掉落在地上(默认行为)还是直接被移除。使用“掉落”效果最佳,最为自然,也是经过最彻底测试的选项。
权限节点:
itembanner.admin
itembanner.command
itembanner.command.add
itembanner.command.bypass
itembanner.command.check
itembanner.command.list
itembanner.command.modify
itembanner.command.reload
itembanner.command.remove
核心命令:/itembanner (别名 /ib)
子命令:
/ib add <material> <quantity> - 添加指定材料及其最大数量。设置为 0 表示完全禁止该材料。
/ib bypass - 切换物品限制豁免状态。
/ib check <material> - 检查指定材料是否在禁用物品列表中,如果是,则显示其最大允许数量。
/ib list - 列出当前禁用的物品。
/ib modify <material> <quantity> - 修改禁用物品列表中现有条目的数量,适用于你需要增加或减少某种材料的最大允许数量时。
/ib reload - 重新加载插件文件。
/ib remove <material> - 从禁用物品列表中移除指定材料。
ItemBanner
This plugin allows you to set hard limits on the amount of certain item materials within your inventory, useful for when a specific kit needs to be enforced or if items just need to be banned. Since other solutions have easy ways to be bypassed & exploited, and are also not open source, out of frustration I decided to make this plugin.
If you have any questions, feature requests, or issues, please don't hesitate to contact me through my support Discord:
There's two options in the config:
debug: false
action-on-excess: drop # valid options: drop & remove
The debug option is unused at the moment in the code and is awaiting future implementation for when, and if, issues arise. The action-on-excess option simply allows you to specify whether excess banned items should be dropped onto the ground (default behavior) or if they should be outright removed. Drop works best, is most natural, and is the option tested most thoroughly.
Permission nodes:
itembanner.admin
itembanner.command
itembanner.command.add
itembanner.command.bypass
itembanner.command.check
itembanner.command.list
itembanner.command.modify
itembanner.command.reload
itembanner.command.remove
Core command: /itembanner (alias /ib)
Subcommands:
/ib add <material> <quantity> - Adds the specified material with the specified max quantity. Set to 0 for the material to be completely banned.
/ib bypass - Toggleable item restriction bypass.
/ib check <material> - Checks to see if the specified material is on the banned item list, and if so, what the maximum quantity is.
/ib list - Lists current banned items.
/ib modify <material> <quantity> - Modifies an existing quantity entry in the banned item list, for when you need to increase or decrease the allowed maximum amount of a certain material.
/ib reload - Reloads plugin files.
/ib remove <material> - Removes the specified material from the banned item list.
评论 0
登录后参与评分
还没有评论,来抢沙发吧