Initial Commit
This commit is contained in:
@@ -62,9 +62,9 @@ public class CmdKickAlt extends FCommand{
|
||||
// requirements
|
||||
if (!Permission.KICK_ANY.has(sender)) {
|
||||
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.KICKALT);
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.KICK);
|
||||
if (access == Access.DENY || (access == Access.UNDEFINED && !assertMinRole(Role.MODERATOR))) {
|
||||
fme.msg(TL.GENERIC_NOPERMISSION, "kickalt");
|
||||
fme.msg(TL.GENERIC_NOPERMISSION, "kick");
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -90,12 +90,12 @@ public class CmdKickAlt extends FCommand{
|
||||
}
|
||||
}
|
||||
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.KICKALT);
|
||||
Access access = myFaction.getAccess(fme, PermissableAction.KICK);
|
||||
// This statement allows us to check if they've specifically denied it,
|
||||
// or default to
|
||||
// the old setting of allowing moderators to kick
|
||||
if (access == Access.DENY || (access == Access.UNDEFINED && !assertMinRole(Role.MODERATOR))) {
|
||||
fme.msg(TL.GENERIC_NOPERMISSION, "kickalt");
|
||||
fme.msg(TL.GENERIC_NOPERMISSION, "kick");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user