public void cancelUseBukketOnProtectedAreas(PlayerBucketEmptyEvent e) {
Game game = worldGame.get(e.getBlockClicked().getWorld());
if (game != null) {
if (isProtected(e.getBlockClicked(), game)) {
e.setCancelled(true);
} else {
TeamManager.TeamId ti = plugin.pm.getTeamId(e.getPlayer());
if (isProhibitedLocation(e.getBlockClicked().getLocation(), ti, game)) {
e.setCancelled(true);
}
}
}
}
GameManager.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:libelula
作者:
评论列表
文章目录