Fly Fixes
This commit is contained in:
parent
e3cfb575fd
commit
e50612d0f2
@ -16,7 +16,7 @@ public class UtilFly {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
Bukkit.getScheduler().scheduleSyncRepeatingTask(SavageFactions.plugin, () -> {
|
Bukkit.getScheduler().scheduleSyncRepeatingTask(SavageFactions.plugin, () -> {
|
||||||
for (FPlayer fp : FPlayers.getInstance().getAllFPlayers()) {
|
for (FPlayer fp : FPlayers.getInstance().getOnlinePlayers()) {
|
||||||
if (fp.isFlying()) fp.checkIfNearbyEnemies();
|
if (fp.isFlying()) fp.checkIfNearbyEnemies();
|
||||||
}
|
}
|
||||||
}, 0, SavageFactions.plugin.getConfig().getInt("fly-task-interval", 10));
|
}, 0, SavageFactions.plugin.getConfig().getInt("fly-task-interval", 10));
|
||||||
|
Loading…
Reference in New Issue
Block a user