mirror of
https://github.com/2006-Scape/Parabot.git
synced 2026-07-06 16:50:39 +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() {
|
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);
|
||||||
|
|||||||
Reference in New Issue
Block a user