mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-03 00:37:55 +00:00
[BUGFIX] Set all multiple random-executions to runAll
This commit is contained in:
@@ -24,7 +24,7 @@ public class RandomHandler {
|
||||
|
||||
public void init() {
|
||||
RandomParser.enable();
|
||||
checkAndRun(RandomType.ON_SERVER_START);
|
||||
runAll(RandomType.ON_SERVER_START);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -81,7 +81,7 @@ public class Script implements Runnable {
|
||||
return;
|
||||
}
|
||||
|
||||
context.getRandomHandler().checkAndRun(RandomType.ON_SCRIPT_START);
|
||||
context.getRandomHandler().runAll(RandomType.ON_SCRIPT_START);
|
||||
|
||||
Core.verbose("Detecting script framework...");
|
||||
context.setRunningScript(this);
|
||||
@@ -120,7 +120,7 @@ public class Script implements Runnable {
|
||||
Core.verbose("Script stopped/finished, unloading and stopping...");
|
||||
onFinish();
|
||||
|
||||
context.getRandomHandler().checkAndRun(RandomType.ON_SCRIPT_FINISH);
|
||||
context.getRandomHandler().runAll(RandomType.ON_SCRIPT_FINISH);
|
||||
|
||||
Logger.addMessage("Script stopped.", false);
|
||||
context.getServerProvider().unloadScript(this);
|
||||
|
||||
Reference in New Issue
Block a user