From b7d991c0dd9e953c0fe7257ad5390315c6a43a9f Mon Sep 17 00:00:00 2001 From: Driftay Date: Mon, 8 Jun 2020 07:06:16 -0400 Subject: [PATCH] unclaim fly fix --- .../java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java b/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java index a4fee5f5..d193b2cf 100644 --- a/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java +++ b/src/main/java/com/massivecraft/factions/cmd/claim/CmdUnclaim.java @@ -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)) {