mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 06:06:45 +01:00
Fix issue that I made, apparently my fix was not in my commit at the time.
This commit is contained in:
parent
2854511252
commit
0cffb0e133
@ -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)));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user