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
19178d2875
commit
96dafe4327
@ -58,6 +58,7 @@ permissions:
|
||||
factions.autoclaim: true
|
||||
factions.chat: true
|
||||
factions.claim: true
|
||||
factions.claim.radius: true
|
||||
factions.deinvite: true
|
||||
factions.description: true
|
||||
factions.disband: true
|
||||
@ -99,6 +100,8 @@ permissions:
|
||||
description: enable admin chat spy mode
|
||||
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:
|
||||
|
@ -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;
|
||||
|
@ -16,6 +16,7 @@ public enum Permission
|
||||
CHAT("chat"),
|
||||
CHATSPY("chatspy"),
|
||||
CLAIM("claim"),
|
||||
CLAIM_RADIUS("claim.radius"),
|
||||
CONFIG("config"),
|
||||
CREATE("create"),
|
||||
DEINVITE("deinvite"),
|
||||
|
Loading…
Reference in New Issue
Block a user