Add initialize call with parent for part of
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful
Dieser Commit ist enthalten in:
Ursprung
780caae80d
Commit
41b46eb6f5
@ -80,7 +80,7 @@ public abstract class AbstractSWCommand<T> {
|
||||
protected void sendMessage(T sender, String message, Object[] args) {
|
||||
}
|
||||
|
||||
protected void initialisePartOf(AbstractSWCommand<T> parent) {
|
||||
protected void initialisePartOf(AbstractSWCommand parent) {
|
||||
}
|
||||
|
||||
protected final void execute(T sender, String alias, String[] args) {
|
||||
@ -159,7 +159,7 @@ public abstract class AbstractSWCommand<T> {
|
||||
dependencyMap.get(this.getClass()).forEach(abstractSWCommand -> {
|
||||
abstractSWCommand.localTypeMapper.putAll((Map) localTypeMapper);
|
||||
abstractSWCommand.localValidators.putAll((Map) localValidators);
|
||||
abstractSWCommand.initialisePartOf((AbstractSWCommand) this);
|
||||
abstractSWCommand.initialisePartOf(this);
|
||||
abstractSWCommand.initialize();
|
||||
commandList.addAll((Collection) abstractSWCommand.commandList);
|
||||
});
|
||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren