@EventHandler(ignoreCancelled = true, priority = EventPriority.HIGH)
public void onBucketEmpty(final PlayerBucketEmptyEvent event) {
if (!isWithinBorder(event.getBlockClicked().getLocation())) {
event.setCancelled(true);
event.getPlayer().sendMessage(ChatColor.RED + "You cannot empty buckets past the border.");
}
}
BorderListener.java 文件源码
java
阅读 31
收藏 0
点赞 0
评论 0
项目:HCFCore
作者:
评论列表
文章目录