Revert "Revert"

This reverts commit 01e46b566a.
This commit is contained in:
HaHaWTH
2024-03-28 05:42:41 +08:00
parent 44e4790e45
commit 598c6736a6
4 changed files with 10 additions and 11 deletions
@@ -18,7 +18,6 @@ import org.bukkit.configuration.file.YamlConfiguration;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;
import org.bukkit.event.Event;
import org.bukkit.scheduler.BukkitTask;
import javax.inject.Inject;
import java.util.Collection;
@@ -154,8 +153,8 @@ public class BukkitService implements SettingsDependent {
* @throws IllegalArgumentException if plugin is null
* @throws IllegalArgumentException if task is null
*/
public BukkitTask runTaskLater(Runnable task, long delay) {
return Bukkit.getScheduler().runTaskLater(authMe, task, delay);
public MyScheduledTask runTaskLater(Runnable task, long delay) {
return getScheduler().runTaskLater(task, delay);
}
/**