From 0cffb0e13303c08b316829edc139963e5fb70ebf Mon Sep 17 00:00:00 2001 From: NuclearW Date: Mon, 16 Jan 2012 20:07:15 -0500 Subject: [PATCH] Fix issue that I made, apparently my fix was not in my commit at the time. --- src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java index 770b13331..602e0748e 100644 --- a/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java +++ b/src/main/java/com/gmail/nossr50/listeners/mcPlayerListener.java @@ -339,6 +339,7 @@ public class mcPlayerListener extends PlayerListener if(!message.startsWith("/")) return; String command = message.substring(1).split(" ")[0]; if(plugin.aliasMap.containsKey(command)) { + if(command.equalsIgnoreCase(plugin.aliasMap.get(command))) return; event.setCancelled(true); event.getPlayer().chat(message.replaceFirst(command, plugin.aliasMap.get(command))); }