Removed arbitrary boundary around admin territories (Chiss' request)

This commit is contained in:
NewGarbo 2015-11-17 22:41:51 +00:00
parent 9b866145ea
commit c23b2f54f5

View File

@ -481,29 +481,29 @@ public class Gameplay extends MiniPlugin
event.setCancelled(true); event.setCancelled(true);
} }
@EventHandler // @EventHandler
public void onBlockPlace(BlockPlaceEvent event) // public void onBlockPlace(BlockPlaceEvent event)
{ // {
Location location = event.getBlock().getLocation(); // Location location = event.getBlock().getLocation();
//
if (_clansManager.getClanUtility().isNearAdminClaim(location)) // if (_clansManager.getClanUtility().isNearAdminClaim(location))
{ // {
event.setCancelled(true); // event.setCancelled(true);
UtilPlayer.message(event.getPlayer(), F.main("Admin", "You cannot place blocks near admin territories!")); // UtilPlayer.message(event.getPlayer(), F.main("Admin", "You cannot place blocks near admin territories!"));
} // }
} // }
//
@EventHandler // @EventHandler
public void onBlockBreak(BlockBreakEvent event) // public void onBlockBreak(BlockBreakEvent event)
{ // {
Location location = event.getBlock().getLocation(); // Location location = event.getBlock().getLocation();
//
if (_clansManager.getClanUtility().isNearAdminClaim(location)) // if (_clansManager.getClanUtility().isNearAdminClaim(location))
{ // {
event.setCancelled(true); // event.setCancelled(true);
UtilPlayer.message(event.getPlayer(), F.main("Admin", "You cannot break blocks near admin territories!")); // UtilPlayer.message(event.getPlayer(), F.main("Admin", "You cannot break blocks near admin territories!"));
} // }
} // }
/* /*
@EventHandler (priority = EventPriority.HIGHEST) @EventHandler (priority = EventPriority.HIGHEST)