Add PreventPiggyBanksOnServerSideInventory config opion

This commit is contained in:
Lucas Nicodemus 2012-05-25 23:29:40 -06:00
parent 030f4ab074
commit 36f368ac20
2 changed files with 3 additions and 1 deletions

View file

@ -228,6 +228,8 @@ namespace TShockAPI
[Description("Prevent banned items from being /i or /give")] public bool PreventBannedItemSpawn = false;
[Description("Prevent banks on SSI")] public bool PreventPiggyBanksOnServerSideInventory = false;
public static ConfigFile Read(string path)
{
if (!File.Exists(path))

View file

@ -1682,7 +1682,7 @@ namespace TShockAPI
{
return true;
}
if ((tiletype == 29 || tiletype == 97) && TShock.Config.ServerSideInventory)
if ((tiletype == 29 || tiletype == 97) && TShock.Config.ServerSideInventory && TShock.Config.PreventPiggyBanksOnServerSideInventory)
{
args.Player.SendMessage("You cannot place this tile, server side inventory is enabled.", Color.Red);
args.Player.SendTileSquare(tileX, tileY);