mirror of
https://github.com/MassiveCraft/Factions.git
synced 2024-12-28 03:27:43 +01:00
Adding a couple of admin bypass commands.
This commit is contained in:
parent
f42fb8e8bf
commit
51161bbb55
@ -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;
|
||||
|
@ -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));
|
||||
|
Loading…
Reference in New Issue
Block a user