From 2426142664bc3730baa732aa99346f18d27eb3cf Mon Sep 17 00:00:00 2001 From: ProSavage Date: Wed, 11 Jul 2018 16:45:55 -0500 Subject: [PATCH] Fixed the invite command permission check. --- pom.xml | 2 +- src/main/java/com/massivecraft/factions/cmd/CmdInvite.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 6b923840..3ceb9d81 100644 --- a/pom.xml +++ b/pom.xml @@ -297,7 +297,7 @@ com.drtshock PlayerVaultsX - 4.0.4-SNAPSHOT + 4.0.6-SNAPSHOT provided diff --git a/src/main/java/com/massivecraft/factions/cmd/CmdInvite.java b/src/main/java/com/massivecraft/factions/cmd/CmdInvite.java index c54cd796..c024671d 100644 --- a/src/main/java/com/massivecraft/factions/cmd/CmdInvite.java +++ b/src/main/java/com/massivecraft/factions/cmd/CmdInvite.java @@ -48,7 +48,7 @@ public class CmdInvite extends FCommand { return; } - Access access = myFaction.getAccess(target, PermissableAction.INVITE); + Access access = myFaction.getAccess(fme, PermissableAction.INVITE); if (access == Access.DENY || (access == Access.UNDEFINED && !assertMinRole(Role.MODERATOR))) { fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "invite"); return;