From baee5d2158008e6a8ff10715f39be80df36b35b6 Mon Sep 17 00:00:00 2001 From: Driftay Date: Mon, 13 Apr 2020 13:24:30 -0400 Subject: [PATCH] Addressed Issue: #77 & #68 --- src/main/java/com/massivecraft/factions/cmd/CmdShowClaims.java | 2 ++ .../com/massivecraft/factions/zcore/persist/MemoryFPlayer.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdShowClaims.java b/src/main/java/com/massivecraft/factions/cmd/CmdShowClaims.java index 62f9f94d..3be6e0ea 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdShowClaims.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdShowClaims.java @@ -4,6 +4,7 @@ import com.google.common.collect.ArrayListMultimap; import com.google.common.collect.ListMultimap; import com.massivecraft.factions.FLocation; import com.massivecraft.factions.struct.Permission; +import com.massivecraft.factions.zcore.fperms.PermissableAction; import com.massivecraft.factions.zcore.util.TL; public class CmdShowClaims extends FCommand { @@ -16,6 +17,7 @@ public class CmdShowClaims extends FCommand { this.aliases.addAll(Aliases.show_claims); this.requirements = new CommandRequirements.Builder(Permission.SHOWCLAIMS) + .withAction(PermissableAction.TERRITORY) .playerOnly() .memberOnly() .build(); diff --git a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java index cbbd0c3a..2c939a42 100644 --- a/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java +++ b/src/main/java/com/massivecraft/factions/zcore/persist/MemoryFPlayer.java @@ -728,6 +728,9 @@ public abstract class MemoryFPlayer implements FPlayer { public void sendFactionHereMessage(Faction from) { Faction toShow = Board.getInstance().getFactionAt(getLastStoodAt()); + + if(Conf.worldsNoClaiming.contains(getLastStoodAt().getWorldName())) return; + if (showInfoBoard(toShow)) { FScoreboard.get(this).setTemporarySidebar(new FInfoSidebar(toShow)); }