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:
Brettflan
2013-01-29 19:21:33 -06:00
parent 15024bf880
commit 4e6c12d995
3 changed files with 9 additions and 0 deletions

View File

@ -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;

View File

@ -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"),