From ea7213cbd7594e5736ce9c00e732e792f9c32061 Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Mon, 12 Feb 2018 10:59:45 -0800 Subject: [PATCH] Fix sethome perm check --- src/main/java/com/massivecraft/factions/cmd/CmdSethome.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java b/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java index 1f28b6cc..94f7c231 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdSethome.java @@ -48,7 +48,7 @@ public class CmdSethome extends FCommand { // Can the player set the home for this faction? // Check for ALLOW access as well before we check for role. if (faction == myFaction && access != Access.ALLOW) { - if (!Permission.SETHOME_ANY.has(sender) && !(Role.MODERATOR.value > fme.getRole().value)) { + if (!Permission.SETHOME_ANY.has(sender) && !(assertMinRole(Role.MODERATOR))) { return; } } else {