Revert "WIP: Access method for commands"
This reverts commit 9c6cc187f2.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user