Fly Fixes

This commit is contained in:
Driftay 2019-05-24 19:12:21 -04:00
parent e3cfb575fd
commit e50612d0f2

View File

@ -16,7 +16,7 @@ public class UtilFly {
return;
Bukkit.getScheduler().scheduleSyncRepeatingTask(SavageFactions.plugin, () -> {
for (FPlayer fp : FPlayers.getInstance().getAllFPlayers()) {
for (FPlayer fp : FPlayers.getInstance().getOnlinePlayers()) {
if (fp.isFlying()) fp.checkIfNearbyEnemies();
}
}, 0, SavageFactions.plugin.getConfig().getInt("fly-task-interval", 10));