New permission factions.claim.radius (granted to all players by default), which is now required in order to specify a radius with the claim command.
This commit is contained in:
parent
15024bf880
commit
4e6c12d995
@ -21,6 +21,7 @@ permissions:
|
||||
factions.cape.set: {description: set faction cape}
|
||||
factions.cape.remove: {description: remove faction cape}
|
||||
factions.claim: {description: claim land where you are standing}
|
||||
factions.claim.radius: {description: claim land in a large radius}
|
||||
factions.config: {description: change a conf.json setting}
|
||||
factions.create: {description: create a new faction}
|
||||
factions.deinvite: {description: remove a pending invitation}
|
||||
@ -130,6 +131,7 @@ permissions:
|
||||
factions.cape: true
|
||||
factions.cape.*: true
|
||||
factions.claim: true
|
||||
factions.claim.radius: true
|
||||
factions.deinvite: true
|
||||
factions.demote: true
|
||||
factions.description: true
|
||||
|
@ -49,6 +49,12 @@ public class CmdClaim extends FCommand
|
||||
else
|
||||
{
|
||||
// radius claim
|
||||
if (! Permission.CLAIM_RADIUS.has(sender, false))
|
||||
{
|
||||
msg("<b>You do not have permission to claim in a radius.");
|
||||
return;
|
||||
}
|
||||
|
||||
new SpiralTask(new FLocation(me), radius)
|
||||
{
|
||||
private int failCount = 0;
|
||||
|
@ -15,6 +15,7 @@ public enum Permission
|
||||
CAPE_SET("cape.set"),
|
||||
CAPE_REMOVE("cape.remove"),
|
||||
CLAIM("claim"),
|
||||
CLAIM_RADIUS("claim.radius"),
|
||||
CONFIG("config"),
|
||||
CREATE("create"),
|
||||
DEINVITE("deinvite"),
|
||||
|
Loading…
Reference in New Issue
Block a user