unclaim fly fix

This commit is contained in:
Driftay 2020-06-08 07:06:16 -04:00
parent 6372245fcd
commit b7d991c0dd

View File

@ -63,6 +63,11 @@ public class CmdUnclaim extends FCommand {
boolean didUnClaim = unClaim(new FLocation(context.player), context);
if (didUnClaim && !context.fPlayer.canFlyAtLocation())
context.fPlayer.setFFlying(false, false);
for(FPlayer fPlayer : context.faction.getFPlayersWhereOnline(true)){
if(!fPlayer.canFlyAtLocation())
fPlayer.setFFlying(false, false);
}
} else {
// radius claim
if (!Permission.CLAIM_RADIUS.has(context.sender, false)) {