Add initialize call with parent for part of
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Einige Prüfungen sind fehlgeschlagen
SteamWarCI Build failed
Dieser Commit ist enthalten in:
Ursprung
7474478489
Commit
d06970f494
@ -80,6 +80,9 @@ public abstract class AbstractSWCommand<T> {
|
|||||||
protected void sendMessage(T sender, String message, Object[] args) {
|
protected void sendMessage(T sender, String message, Object[] args) {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void initialisePartOf(AbstractSWCommand<T> parent) {
|
||||||
|
}
|
||||||
|
|
||||||
protected final void execute(T sender, String alias, String[] args) {
|
protected final void execute(T sender, String alias, String[] args) {
|
||||||
initialize();
|
initialize();
|
||||||
List<Runnable> errors = new ArrayList<>();
|
List<Runnable> errors = new ArrayList<>();
|
||||||
@ -156,6 +159,7 @@ public abstract class AbstractSWCommand<T> {
|
|||||||
dependencyMap.get(this.getClass()).forEach(abstractSWCommand -> {
|
dependencyMap.get(this.getClass()).forEach(abstractSWCommand -> {
|
||||||
abstractSWCommand.localTypeMapper.putAll((Map) localTypeMapper);
|
abstractSWCommand.localTypeMapper.putAll((Map) localTypeMapper);
|
||||||
abstractSWCommand.localValidators.putAll((Map) localValidators);
|
abstractSWCommand.localValidators.putAll((Map) localValidators);
|
||||||
|
abstractSWCommand.initialisePartOf(this);
|
||||||
abstractSWCommand.initialize();
|
abstractSWCommand.initialize();
|
||||||
commandList.addAll((Collection) abstractSWCommand.commandList);
|
commandList.addAll((Collection) abstractSWCommand.commandList);
|
||||||
});
|
});
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren