This commit is contained in:
HaHaWTH
2024-03-28 03:51:46 +08:00
parent 93c97cf94b
commit 01e46b566a
4 changed files with 11 additions and 10 deletions
@@ -18,6 +18,7 @@ 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;
@@ -153,8 +154,8 @@ public class BukkitService implements SettingsDependent {
* @throws IllegalArgumentException if plugin is null
* @throws IllegalArgumentException if task is null
*/
public MyScheduledTask runTaskLater(Runnable task, long delay) {
return getScheduler().runTaskLater(task, delay);
public BukkitTask runTaskLater(Runnable task, long delay) {
return Bukkit.getScheduler().runTaskLater(authMe, task, delay);
}
/**