Added 'canspike' permission, spikes can't be placed without it.
This commit is contained in:
parent
701659f62a
commit
b7ee450df8
1 changed files with 6 additions and 0 deletions
|
|
@ -208,6 +208,12 @@ namespace TShockAPI
|
|||
plyX, plyY, tileX, tileY, Math.Abs(plyX - tileX), Math.Abs(plyY - tileY), tiletype));
|
||||
return Tools.HandleGriefer(args.Player, "Placing impossible to place blocks.");
|
||||
}
|
||||
if (tiletype == 48 && !args.Player.Group.HasPermission("canspike"))
|
||||
{
|
||||
args.Player.SendMessage("You do not have permission to place spikes.", Color.Red);
|
||||
args.Player.SendTileSquare(x, y);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (ConfigurationManager.DisableBuild)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue