SteamWar/SpigotCore
Archiviert
13
0

Make SWCommand.register and SWCommand.unregister public

Dieser Commit ist enthalten in:
yoyosource 2021-04-10 17:33:20 +02:00
Ursprung 45c2a77186
Commit 2f61d2836b

Datei anzeigen

@ -186,7 +186,7 @@ public abstract class SWCommand {
}); });
} }
protected void unregister() { public void unregister() {
SWCommandUtils.knownCommandMap.remove(command.getName()); SWCommandUtils.knownCommandMap.remove(command.getName());
for (String alias : command.getAliases()) { for (String alias : command.getAliases()) {
SWCommandUtils.knownCommandMap.remove(alias); SWCommandUtils.knownCommandMap.remove(alias);
@ -194,7 +194,7 @@ public abstract class SWCommand {
command.unregister(SWCommandUtils.commandMap); command.unregister(SWCommandUtils.commandMap);
} }
protected void register() { public void register() {
SWCommandUtils.commandMap.register("steamwar", this.command); SWCommandUtils.commandMap.register("steamwar", this.command);
} }