Merge pull request #2894 from sgkoishi/saveonlyafterjoin
Add a check to InsertPlayerData to prevent data overwrite
This commit is contained in:
commit
20bb8c4eb5
1 changed files with 3 additions and 0 deletions
|
|
@ -189,6 +189,9 @@ namespace TShockAPI.DB
|
||||||
if (!player.IsLoggedIn)
|
if (!player.IsLoggedIn)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
|
if (player.State < 10)
|
||||||
|
return false;
|
||||||
|
|
||||||
if (player.HasPermission(Permissions.bypassssc) && !fromCommand)
|
if (player.HasPermission(Permissions.bypassssc) && !fromCommand)
|
||||||
{
|
{
|
||||||
TShock.Log.ConsoleInfo(GetParticularString("{0} is a player name", $"Skipping SSC save (due to tshock.ignore.ssc) for {player.Account.Name}"));
|
TShock.Log.ConsoleInfo(GetParticularString("{0} is a player name", $"Skipping SSC save (due to tshock.ignore.ssc) for {player.Account.Name}"));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue