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) {
|
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;
|
this.clazz = clazz;
|
||||||
|
initializer.run();
|
||||||
createAndSafeCommand(command, aliases);
|
createAndSafeCommand(command, aliases);
|
||||||
unregister();
|
unregister();
|
||||||
register();
|
register();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren