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
1 changed files with 23 additions and 23 deletions

View File

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