geforkt von Mirrors/Paper
SPIGOT-1030: Allow commands.yml to act on aliases
By: md_5 <git@md-5.net>
Dieser Commit ist enthalten in:
Ursprung
880ba74a11
Commit
b54985de63
@ -222,7 +222,7 @@ public class SimpleCommandMap implements CommandMap {
|
|||||||
Map<String, String[]> values = server.getCommandAliases();
|
Map<String, String[]> values = server.getCommandAliases();
|
||||||
|
|
||||||
for (String alias : values.keySet()) {
|
for (String alias : values.keySet()) {
|
||||||
if (alias.contains(":") || alias.contains(" ")) {
|
if (alias.contains(" ")) {
|
||||||
server.getLogger().warning("Could not register alias " + alias + " because it contains illegal characters");
|
server.getLogger().warning("Could not register alias " + alias + " because it contains illegal characters");
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren