mirror of
https://github.com/2006-Scape/apollo.git
synced 2026-07-04 16:49:11 +00:00
Add start of test framework for plugins
Adds a basic testing framework suitable for plugins that start simple Actions for players, which can be expanded on in the future. The banking and training dummy tests have been updated to use this framework and serve as samples.
This commit is contained in:
@@ -71,7 +71,7 @@ public abstract class ScheduledTask {
|
||||
/**
|
||||
* Pulses this task: updates the delay and calls {@link #execute()} if necessary.
|
||||
*/
|
||||
final void pulse() {
|
||||
public final void pulse() {
|
||||
if (running && --pulses <= 0) {
|
||||
execute();
|
||||
pulses = delay;
|
||||
|
||||
Reference in New Issue
Block a user