diff --git a/src/main/java/com/volmit/iris/manager/command/CommandLocate.java b/src/main/java/com/volmit/iris/manager/command/CommandLocate.java index 72f101884..fcefb4e85 100644 --- a/src/main/java/com/volmit/iris/manager/command/CommandLocate.java +++ b/src/main/java/com/volmit/iris/manager/command/CommandLocate.java @@ -17,9 +17,8 @@ public class CommandLocate extends MortarCommand implements Listener @EventHandler public void onPlayerCommandPreprocess(final PlayerCommandPreprocessEvent event) { if (event.getMessage().contains("locate") && IrisWorlds.isIrisWorld(event.getPlayer().getWorld())){ - MortarSender s = (MortarSender) event.getPlayer(); - s.sendMessage("/locate command blocked in Iris worlds. Please use '/ir goto' instead."); event.setCancelled(true); + event.getPlayer().sendMessage("/locate command blocked in Iris worlds. Please use '/ir goto' instead."); } }