diff --git a/src/me/azenet/UHPlugin/UHPluginListener.java b/src/me/azenet/UHPlugin/UHPluginListener.java index 5244eba..b0aa3bf 100644 --- a/src/me/azenet/UHPlugin/UHPluginListener.java +++ b/src/me/azenet/UHPlugin/UHPluginListener.java @@ -325,6 +325,8 @@ public void onPlayerInteract(PlayerInteractEvent ev) { pl.sendMessage(ChatColor.GRAY+"The compass points to the nearest player."); pl.setCompassTarget(nearest.getLocation()); } + else if(ev.getClickedBlock().getY() == 42 && ev.getClickedBlock().getX() == 6 && (ev.getClickedBlock().getZ() == -8 || ev.getClickedBlock().getZ() == -9 || ev.getClickedBlock().getZ() == -10)) + ev.setCancelled(true); } @EventHandler