Fixed permission check for /f vault
This commit is contained in:
parent
40a0d72270
commit
85de278dc9
@ -30,12 +30,12 @@ public class CmdChest extends FCommand {
|
||||
fme.sendMessage("This command is disabled!");
|
||||
return;
|
||||
}
|
||||
Access access = fme.getFaction().getAccess(fme, PermissableAction.CHEST);
|
||||
if (access.equals(Access.DENY)) {
|
||||
// This permission check is way too explicit but it's clean
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.CHEST);
|
||||
if (access != Access.ALLOW && fme.getRole() != Role.ADMIN) {
|
||||
fme.msg(TL.GENERIC_NOPERMISSION, "chest");
|
||||
return;
|
||||
}
|
||||
//debug Bukkit.broadcastMessage(fme.getFaction().getUpgrade("Chest") + "");
|
||||
|
||||
me.openInventory(fme.getFaction().getChest());
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user