Make sure the user is logged in when we save inventory on kick.
This commit is contained in:
parent
60c6d80c59
commit
f48056357b
1 changed files with 2 additions and 1 deletions
|
|
@ -571,7 +571,8 @@ namespace TShockAPI
|
||||||
{
|
{
|
||||||
string playerName = player.Name;
|
string playerName = player.Name;
|
||||||
player.SilentKickInProgress = silent;
|
player.SilentKickInProgress = silent;
|
||||||
TShock.InventoryDB.InsertPlayerData(player);
|
if( player.IsLoggedIn )
|
||||||
|
TShock.InventoryDB.InsertPlayerData(player);
|
||||||
player.Disconnect(string.Format("Kicked: {0}", reason));
|
player.Disconnect(string.Format("Kicked: {0}", reason));
|
||||||
Log.ConsoleInfo(string.Format("Kicked {0} for : {1}", playerName, reason));
|
Log.ConsoleInfo(string.Format("Kicked {0} for : {1}", playerName, reason));
|
||||||
string verb = force ? "force " : "";
|
string verb = force ? "force " : "";
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue