TaskHandler.java 320 Bytes
Newer Older
Yazawazi's avatar
Yazawazi committed
1
2
package emu.grasscutter.task;

Yazawazi's avatar
Yazawazi committed
3
import org.quartz.*;
Yazawazi's avatar
Yazawazi committed
4

Yazawazi's avatar
Yazawazi committed
5
@PersistJobDataAfterExecution
KingRainbow44's avatar
KingRainbow44 committed
6
public abstract class TaskHandler implements Job {
Yazawazi's avatar
Yazawazi committed
7
8
    public void restartExecute() throws JobExecutionException {
        execute(null);
Yazawazi's avatar
Yazawazi committed
9
    }
Yazawazi's avatar
Yazawazi committed
10

KingRainbow44's avatar
KingRainbow44 committed
11
    public abstract void onEnable();
Yazawazi's avatar
Yazawazi committed
12

KingRainbow44's avatar
KingRainbow44 committed
13
    public abstract void onDisable();
Yazawazi's avatar
Yazawazi committed
14
}