mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-24 14:16: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;
|
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)));
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user