Warn players if bypass SSC permission is enabled
If a player has the tshock.ignore.ssc permission, odds are that they may want to know that their data isn't being saved or not. This change allows users to be notified if they have SSC data stored in the DB but they aren't having it loaded due to the aforementioned permission. This permission causes great confusion, but we can't really change it because we would break existing setups. This is an easy change that gives people a reason why they suddenly "have no items." This new option can be turned off in the config file for SSC if it's not desired. This change also modifies some of the log messages so that it's clear why the SSC save didn't occur for a given player.
This commit is contained in:
parent
c9b13b493e
commit
68ae73ffef
5 changed files with 16 additions and 3 deletions
|
|
@ -66,6 +66,12 @@ namespace TShockAPI.Configuration
|
|||
/// </summary>
|
||||
[Description("The starting default inventory for new players when SSC is enabled.")]
|
||||
public List<NetItem> StartingInventory = new List<NetItem>();
|
||||
|
||||
/// <summary>
|
||||
/// Warns players that they have the bypass SSC permission enabled. To disable warning, turn this off.
|
||||
/// </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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue