mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-29 01:31:20 +01:00
Made EcoScheduler more consistent
This commit is contained in:
parent
07e1848054
commit
d096296958
@ -13,27 +13,27 @@ public class EcoScheduler extends PluginDependent implements Scheduler {
|
||||
|
||||
@Override
|
||||
public BukkitTask runLater(Callable callable, long ticksLater) {
|
||||
return Bukkit.getServer().getScheduler().runTaskLater(this.getPlugin(), callable::call, ticksLater);
|
||||
return Bukkit.getScheduler().runTaskLater(this.getPlugin(), callable::call, ticksLater);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BukkitTask runTimer(Callable callable, long delay, long repeat) {
|
||||
return Bukkit.getServer().getScheduler().runTaskTimer(this.getPlugin(), callable::call, delay, repeat);
|
||||
return Bukkit.getScheduler().runTaskTimer(this.getPlugin(), callable::call, delay, repeat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BukkitTask runAsyncTimer(Callable callable, long delay, long repeat) {
|
||||
return Bukkit.getServer().getScheduler().runTaskTimerAsynchronously(this.getPlugin(), callable::call, delay, repeat);
|
||||
return Bukkit.getScheduler().runTaskTimerAsynchronously(this.getPlugin(), callable::call, delay, repeat);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BukkitTask run(Runnable runnable) {
|
||||
return Bukkit.getServer().getScheduler().runTask(this.getPlugin(), runnable::run);
|
||||
return Bukkit.getScheduler().runTask(this.getPlugin(), runnable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public BukkitTask runAsync(Callable callable) {
|
||||
return Bukkit.getServer().getScheduler().runTaskAsynchronously(this.getPlugin(), callable::call);
|
||||
return Bukkit.getScheduler().runTaskAsynchronously(this.getPlugin(), callable::call);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user