Fix issue that I made, apparently my fix was not in my commit at the time.

This commit is contained in:
NuclearW 2012-01-16 20:07:15 -05:00
parent 2854511252
commit 0cffb0e133

View File

@ -339,6 +339,7 @@ public class mcPlayerListener extends PlayerListener
if(!message.startsWith("/")) return; if(!message.startsWith("/")) return;
String command = message.substring(1).split(" ")[0]; String command = message.substring(1).split(" ")[0];
if(plugin.aliasMap.containsKey(command)) { if(plugin.aliasMap.containsKey(command)) {
if(command.equalsIgnoreCase(plugin.aliasMap.get(command))) return;
event.setCancelled(true); event.setCancelled(true);
event.getPlayer().chat(message.replaceFirst(command, plugin.aliasMap.get(command))); event.getPlayer().chat(message.replaceFirst(command, plugin.aliasMap.get(command)));
} }