Prevent invalid walls from hiding stuff.
This commit is contained in:
parent
258b7d48fb
commit
e24df84d9a
2 changed files with 7 additions and 1 deletions
|
|
@ -95,7 +95,7 @@ namespace TShockAPI
|
||||||
public string MediumcoreBanReason = "Death results in a ban";
|
public string MediumcoreBanReason = "Death results in a ban";
|
||||||
public string MediumcoreKickReason = "Death results in a kick";
|
public string MediumcoreKickReason = "Death results in a kick";
|
||||||
public string ProjectileAbuseReason = "Projectile abuse";
|
public string ProjectileAbuseReason = "Projectile abuse";
|
||||||
|
public string TileAbuseReason = "Tile abuse ({0})";
|
||||||
|
|
||||||
public bool EnableDNSHostResolution;
|
public bool EnableDNSHostResolution;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -335,6 +335,12 @@ namespace TShockAPI
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (type == 3)
|
||||||
|
if (tiletype >= Main.maxWallTypes)
|
||||||
|
{
|
||||||
|
Tools.HandleGriefer(args.Player, string.Format(TShock.Config.TileAbuseReason, "Wall type out of bounds"));
|
||||||
|
return true;
|
||||||
|
}
|
||||||
if (!args.Player.Group.HasPermission("editspawn") && !TShock.Regions.CanBuild(x, y, args.Player) && TShock.Regions.InArea(x, y))
|
if (!args.Player.Group.HasPermission("editspawn") && !TShock.Regions.CanBuild(x, y, args.Player) && TShock.Regions.InArea(x, y))
|
||||||
{
|
{
|
||||||
if ((DateTime.UtcNow - args.Player.LastTileChangeNotify).TotalMilliseconds > 1000)
|
if ((DateTime.UtcNow - args.Player.LastTileChangeNotify).TotalMilliseconds > 1000)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue