From 53fdcce361480de122580d72224b66f86c63de04 Mon Sep 17 00:00:00 2001 From: CocoTheOwner Date: Sun, 7 Feb 2021 20:22:15 +0100 Subject: [PATCH] Patch /locate override, reverting cosmetic changes that caused issues. --- .../java/com/volmit/iris/manager/command/CommandLocate.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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."); } }