Fixed a few known issues with F Fly

This commit is contained in:
DroppingAnvil
2020-04-30 14:27:26 -05:00
committed by droppinganvil
parent 86cba0e24c
commit e37745eff9
7 changed files with 10 additions and 36 deletions

View File

@@ -15,8 +15,6 @@ public class UtilFly {
*/
@Deprecated
public static void run() {
if (!FactionsPlugin.factionsFlight)
return;
Bukkit.getScheduler().scheduleSyncRepeatingTask(FactionsPlugin.getInstance(), () -> {
for (FPlayer fp : FPlayers.getInstance().getOnlinePlayers()) {
@@ -28,8 +26,6 @@ public class UtilFly {
@Deprecated
public static void setFly(FPlayer fp, boolean fly, boolean silent, boolean damage) {
if (!FactionsPlugin.factionsFlight)
return;
fp.getPlayer().setAllowFlight(fly);
fp.getPlayer().setFlying(fly);