Add ScriptExecutor replace vars twice
Dieser Commit ist enthalten in:
Ursprung
bcbabb8158
Commit
4c604d968b
@ -106,6 +106,7 @@ public final class ScriptExecutor {
|
||||
variables.addAll(Constants.allVariables());
|
||||
variables.addAll(globalVariables.allVariables());
|
||||
|
||||
for (int i = 0; i < 2; i++) {
|
||||
for (String variable : variables) {
|
||||
s = s.replace("<" + variable + ">", getValue(variable) + "");
|
||||
}
|
||||
@ -118,6 +119,7 @@ public final class ScriptExecutor {
|
||||
for (String globalVariable : globalVariables.allVariables()) {
|
||||
s = s.replace("<global." + globalVariable + ">", getGlobal(globalVariable) + "");
|
||||
}
|
||||
}
|
||||
return s.split(" ");
|
||||
}
|
||||
|
||||
|
In neuem Issue referenzieren
Einen Benutzer sperren