Fixed the invite command permission check.

This commit is contained in:
ProSavage 2018-07-11 16:45:55 -05:00
parent fded071136
commit 2426142664
2 changed files with 2 additions and 2 deletions

View File

@ -297,7 +297,7 @@
<dependency> <dependency>
<groupId>com.drtshock</groupId> <groupId>com.drtshock</groupId>
<artifactId>PlayerVaultsX</artifactId> <artifactId>PlayerVaultsX</artifactId>
<version>4.0.4-SNAPSHOT</version> <version>4.0.6-SNAPSHOT</version>
<scope>provided</scope> <scope>provided</scope>
</dependency> </dependency>
<dependency> <dependency>

View File

@ -48,7 +48,7 @@ public class CmdInvite extends FCommand {
return; 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))) { if (access == Access.DENY || (access == Access.UNDEFINED && !assertMinRole(Role.MODERATOR))) {
fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "invite"); fme.msg(TL.GENERIC_FPERM_NOPERMISSION, "invite");
return; return;