From 9f08e6580b9a229d423d1c00978a0d5a595a945b Mon Sep 17 00:00:00 2001 From: Trent Hensler Date: Sat, 20 Jan 2018 16:53:09 -0800 Subject: [PATCH] Fix some other f perm checks --- .../massivecraft/factions/listeners/FactionsPlayerListener.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java index 96504b44..4707902b 100644 --- a/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java +++ b/src/main/java/com/massivecraft/factions/listeners/FactionsPlayerListener.java @@ -355,7 +355,7 @@ public class FactionsPlayerListener implements Listener { Relation rel = myFaction.getRelationTo(otherFaction); - Access access = otherFaction.getAccess(me, com.massivecraft.factions.zcore.fperms.Action.valueOf("items")); + Access access = otherFaction.getAccess(me, com.massivecraft.factions.zcore.fperms.Action.ITEM); if (access != null && access != Access.UNDEFINED) { // TODO: Update this once new access values are added other than just allow / deny. return access == Access.ALLOW;