0

add ScheduleTask

This commit is contained in:
2021-01-02 14:38:41 +03:00
parent c20df9af24
commit b3aec1716a
4 changed files with 80 additions and 13 deletions

View File

@@ -0,0 +1,20 @@
package ghast.scheduler;
import lombok.RequiredArgsConstructor;
import org.bukkit.scheduler.BukkitTask;
@RequiredArgsConstructor
public class BukkitScheduleTask implements ScheduleTask {
private final BukkitTask bukkitTask;
@Override
public boolean isCanceled() {
return bukkitTask.isCancelled();
}
@Override
public void cancel() {
bukkitTask.cancel();
}
}