Add PreventPiggyBanksOnServerSideInventory config opion
This commit is contained in:
parent
030f4ab074
commit
36f368ac20
2 changed files with 3 additions and 1 deletions
|
|
@ -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))
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue