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);
|
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)
|
||||||
|
Loading…
Reference in New Issue
Block a user