Revert "WIP: Access method for commands"

This reverts commit 9c6cc187f2.
This commit is contained in:
ProSavage
2018-09-08 17:28:09 -05:00
parent 9a773702eb
commit 90ae1822bc
21 changed files with 66 additions and 111 deletions

View File

@@ -79,7 +79,8 @@ public class CmdKick extends FCommand {
// - Make sure the player is in the faction.
// - Make sure the kicked player has lower rank than the kicker.
if (!fme.isAdminBypassing()) {
if (!this.hasAccess(PermissableAction.KICK, false)) {
Access access = myFaction.getAccess(fme, PermissableAction.KICK);
if (access != Access.ALLOW && fme.getRole() != Role.ADMIN) {
fme.msg(TL.GENERIC_NOPERMISSION, "kick");
return;
}