Dont override commands
This commit is contained in:
parent
c8eea3c976
commit
9a8ec501b7
@ -69,16 +69,13 @@ public class SimpleDispatcher implements Dispatcher {
|
|||||||
for (CommandMapping add : newDispatcher.getCommands()) {
|
for (CommandMapping add : newDispatcher.getCommands()) {
|
||||||
existingDispatcher.registerCommand(add.getCallable(), add.getAllAliases());
|
existingDispatcher.registerCommand(add.getCallable(), add.getAllAliases());
|
||||||
}
|
}
|
||||||
|
continue;
|
||||||
} else {
|
} else {
|
||||||
Fawe.debug("Replacing commands is currently undefined behavior: " + StringMan.getString(alias));
|
Fawe.debug("Replacing commands is currently undefined behavior: " + StringMan.getString(alias));
|
||||||
return;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
commands.putIfAbsent(lower, mapping);
|
||||||
|
|
||||||
for (String a : alias) {
|
|
||||||
String lower = a.toLowerCase();
|
|
||||||
commands.put(lower, mapping);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user