Fix
This commit is contained in:
@@ -10,10 +10,12 @@ import fr.xephi.authme.util.Utils;
|
||||
import org.bukkit.BanEntry;
|
||||
import org.bukkit.BanList;
|
||||
import org.bukkit.Bukkit;
|
||||
import org.bukkit.Location;
|
||||
import org.bukkit.OfflinePlayer;
|
||||
import org.bukkit.World;
|
||||
import org.bukkit.command.CommandSender;
|
||||
import org.bukkit.configuration.file.YamlConfiguration;
|
||||
import org.bukkit.entity.Entity;
|
||||
import org.bukkit.entity.Player;
|
||||
import org.bukkit.event.Event;
|
||||
|
||||
@@ -98,6 +100,15 @@ public class BukkitService implements SettingsDependent {
|
||||
getScheduler().runTask(task);
|
||||
}
|
||||
|
||||
public void runTask(Entity entity, Runnable task) {
|
||||
getScheduler().runTask(entity, task);
|
||||
}
|
||||
|
||||
public void runTask(Location location, Runnable task) {
|
||||
getScheduler().runTask(location, task);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Returns a task that will run after the specified number of server
|
||||
* ticks.
|
||||
|
||||
Reference in New Issue
Block a user