Add ability for items given to players to be inserted directly into their inventory instead of spawned as an item drop

This commit is contained in:
Janet Blackquill 2022-10-22 23:50:16 -04:00
parent 80736028df
commit 7198a47e82
6 changed files with 122 additions and 3 deletions

View file

@ -72,6 +72,10 @@ namespace TShockAPI.Configuration
/// </summary>
[Description("Warns players and the console if a player has the tshock.ignore.ssc permission with data in the SSC table.")]
public bool WarnPlayersAboutBypassPermission = true;
/// <summary>If set to true, items given to players will be inserted directly into their inventory. Requires SSC. Otherwise, items given to players will spawn as dropped items.</summary>
[Description("If set to true, items given to players will be inserted directly into their inventory. Requires SSC. Otherwise, items given to players will spawn as dropped items.")]
public bool GiveItemsDirectly = false;
}
/// <summary>

View file

@ -160,7 +160,7 @@ namespace TShockAPI.Configuration
/// <summary>Disables tombstone dropping during death for all players.</summary>
[Description("Disables tombstone dropping during death for all players.")]
public bool DisableTombstones = true;
/// <summary>
/// Disables Skeletron Prime Bombs from spawning, useful for preventing unwanted world destruction on for the worthy seed world.
/// </summary>