Fixed 'bad aliases' error output.
This commit is contained in:
parent
d870a6e3f8
commit
f0877250ff
@ -162,9 +162,7 @@ public final class SimpleCommandMap implements CommandMap {
|
|||||||
Command command = getCommand(name);
|
Command command = getCommand(name);
|
||||||
|
|
||||||
if (command == null) {
|
if (command == null) {
|
||||||
if (bad.length() > 0) {
|
bad += name + ", ";
|
||||||
bad += ", ";
|
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
targets.add(command);
|
targets.add(command);
|
||||||
}
|
}
|
||||||
@ -179,6 +177,7 @@ public final class SimpleCommandMap implements CommandMap {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (bad.length() > 0) {
|
if (bad.length() > 0) {
|
||||||
|
bad = bad.substring(0, bad.length() - 2);
|
||||||
server.getLogger().warning("The following command(s) could not be aliased under '" + alias + "' because they do not exist: " + bad);
|
server.getLogger().warning("The following command(s) could not be aliased under '" + alias + "' because they do not exist: " + bad);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user