Dieser Commit ist enthalten in:
Ursprung
b183ce0b2d
Commit
ef49888699
@ -45,7 +45,12 @@ public abstract class AbstractSWCommand<T> {
|
||||
}
|
||||
|
||||
protected AbstractSWCommand(Class<T> clazz, String command, String... aliases) {
|
||||
this(clazz, command, () -> {}, aliases);
|
||||
}
|
||||
|
||||
protected AbstractSWCommand(Class<T> clazz, String command, Runnable initializer, String... aliases) {
|
||||
this.clazz = clazz;
|
||||
initializer.run();
|
||||
createAndSafeCommand(command, aliases);
|
||||
unregister();
|
||||
register();
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren