Adding a couple of admin bypass commands.

This commit is contained in:
Olof Larsson 2011-10-21 18:20:31 +02:00
parent f42fb8e8bf
commit 51161bbb55
2 changed files with 2 additions and 2 deletions

View File

@ -645,7 +645,7 @@ public class FPlayer extends PlayerEntity implements EconomyParticipator
return false;
}
if (this.getRole().value < Role.MODERATOR.value)
if (this.getRole().value < Role.MODERATOR.value && ! this.isAdminBypassing())
{
msg("<i>You must be "+Role.MODERATOR+" to claim land.");
return false;

View File

@ -53,7 +53,7 @@ public class CmdJoin extends FCommand
return;
}
if( ! faction.getOpen() && ! faction.isInvited(fme))
if( ! (faction.getOpen() || faction.isInvited(fme) || fme.isAdminBypassing()))
{
msg("<i>This faction requires invitation.");
faction.msg("%s<i> tried to join your faction.", fme.getNameAndRelevant(faction));