[BUGFIX] Set all multiple random-executions to runAll

This commit is contained in:
JKetelaar
2017-04-23 01:40:25 +02:00
parent 4831cae068
commit ee0a263630
2 changed files with 3 additions and 3 deletions
@@ -24,7 +24,7 @@ public class RandomHandler {
public void init() { public void init() {
RandomParser.enable(); RandomParser.enable();
checkAndRun(RandomType.ON_SERVER_START); runAll(RandomType.ON_SERVER_START);
} }
/** /**
@@ -81,7 +81,7 @@ public class Script implements Runnable {
return; return;
} }
context.getRandomHandler().checkAndRun(RandomType.ON_SCRIPT_START); context.getRandomHandler().runAll(RandomType.ON_SCRIPT_START);
Core.verbose("Detecting script framework..."); Core.verbose("Detecting script framework...");
context.setRunningScript(this); context.setRunningScript(this);
@@ -120,7 +120,7 @@ public class Script implements Runnable {
Core.verbose("Script stopped/finished, unloading and stopping..."); Core.verbose("Script stopped/finished, unloading and stopping...");
onFinish(); onFinish();
context.getRandomHandler().checkAndRun(RandomType.ON_SCRIPT_FINISH); context.getRandomHandler().runAll(RandomType.ON_SCRIPT_FINISH);
Logger.addMessage("Script stopped.", false); Logger.addMessage("Script stopped.", false);
context.getServerProvider().unloadScript(this); context.getServerProvider().unloadScript(this);