Fixed the invite command permission check.
This commit is contained in:
parent
fded071136
commit
2426142664
2
pom.xml
2
pom.xml
@ -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>
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user