V2.0,大更新。 2020/4/25:
更多的封禁选项: - brew: 可被酿造
- drops: 破坏方块禁止掉落
- entitydrop: 物品是否从实体身上掉落
- glide: 是否可用鞘翅滑行
- hangingplace: 当玩家尝试放置悬挂物品时 (展示框、画...);
选项变化:
- inventory被重命名为transfer,优化&修复了:不能将物品传输到别的容器
- wear优化&修复了:如果早已穿上该装备在切换世界时,将物品返回到背包内(满则掉落)
- creative现在是禁止游戏模式数据的一部分
添加选项数据:
- Can now check multiples datas depending of the option (entity involved, inventory used, player gamemode etc.)
- Added a 'gamemode' data, which will consider the player gamemode to apply the ban or not
- Added a 'log' boolean data, which allows players in game to be directly notified if player use a banned item, with /banitem log
- Added a 'cooldown' (in milliseconds) long data (non persistent), the ban only applies if players aren't in cooldown
配置变化:- Hopper transfer block: if it's enabled and if an item has transfer option, this will be blocked;
- Use the event api: to let others plugins modify the behavior of a banned action
- 你可以设置多条封禁提示信息,参考代码
- plot:
- diamond_block:
- place:
- - '&c1.'
- - '&c2.'
复制代码
指令优化:
- /banitem log: activate the live log mode, sending message [size=14.6667px](of banned items with 'log: true') to them;
- /banitem add <name> <options> [message]: to directly ban in game an item [size=14.6667px](type, without metadata);
- /banitem ci add <name> [options] [message]: to directly ban in game an item [size=14.6667px](with metadata);
- /banitem help <type>: give some informations about a specific type (option? entity? etc.);
小变化:
- Materials now also supports '*' & '!' operators, and correctly support AIR (player empty hand)
- 修复优化白名单
- Fixed rare exceptions where custom items aren't banned;
- 修复自定义物品
- 修复指令权限
- Fixed display of custom items permissions in /banitem info;
- 重写优化大量代码
- 重写优化API. New PlayerBanItemEvent. Every class is now documented.
- 控制台显示更详细的错误加载信息
|