public void onFill(PlayerBucketFillEvent e) {
Player p = e.getPlayer();
int prot = plugin.getSettings().getProtectedSpawnRadius();
if (p.getWorld().getSpawnLocation().distance(p.getLocation()) < prot) {
e.setCancelled(true);
p.sendMessage(ColoringUtil.colorText("&cNie mozesz ingerowac w bloki na spawnie!"));
}
}
PlaceBreakListener.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:CommunityDrivenPlugin
作者:
评论列表
文章目录