简单用法
检查玩家是否可以放置方块
Player player = ...;
boolean allow = ProtectorAPI.allowPlace(player);Player player = ...;
Block block = ...;
boolean allow = ProtectorAPI.allowPlace(player, block);检查玩家是否可以破坏方块
Player player = ...;
boolean allow = ProtectorAPI.allowBreak(player);Player player = ...;
Block block = ...;
boolean allow = ProtectorAPI.allowBreak(player, block);检查玩家是否可以交互
检查由保护插件发出的事件是否为假事件
最后更新于