Fixed Fly Disable For People In Creative

This commit is contained in:
Driftay 2019-09-14 15:51:30 -04:00
parent db9c951283
commit 804160429d
1 changed files with 1 additions and 1 deletions

View File

@ -736,7 +736,7 @@ public class FactionsPlayerListener implements Listener {
}
if (me.getAutoClaimFor() != null) {
me.attemptClaim(me.getAutoClaimFor(), event.getTo(), true);
if (Conf.disableFlightOnFactionClaimChange) CmdFly.disableFlight(me);
if (Conf.disableFlightOnFactionClaimChange && event.getPlayer().getGameMode() != GameMode.CREATIVE) CmdFly.disableFlight(me);
} else if (me.isAutoSafeClaimEnabled()) {
if (!Permission.MANAGE_SAFE_ZONE.has(player)) {
me.setIsAutoSafeClaimEnabled(false);