Fix command mapping for /authme:unregister etc.

This commit is contained in:
ljacqu
2017-02-18 15:56:08 +01:00
parent e3426cd731
commit c9b66183de
2 changed files with 18 additions and 0 deletions
@@ -123,6 +123,9 @@ public class CommandMapper {
private CommandDescription getBaseCommand(String label) {
String baseLabel = label.toLowerCase();
if (baseLabel.startsWith("authme:")) {
baseLabel = baseLabel.substring("authme:".length());
}
for (CommandDescription command : baseCommands) {
if (command.hasLabel(baseLabel)) {
return command;