Make SWCommand.register and SWCommand.unregister public
Dieser Commit ist enthalten in:
Ursprung
45c2a77186
Commit
2f61d2836b
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
In neuem Issue referenzieren
Einen Benutzer sperren