Removed arbitrary boundary around admin territories (Chiss' request)
This commit is contained in:
parent
9b866145ea
commit
c23b2f54f5
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user