Make sure the user is logged in when we save inventory on kick.

This commit is contained in:
Zack Piispanen 2012-04-16 12:32:23 -04:00
parent 60c6d80c59
commit f48056357b

View file

@ -571,7 +571,8 @@ namespace TShockAPI
{
string playerName = player.Name;
player.SilentKickInProgress = silent;
TShock.InventoryDB.InsertPlayerData(player);
if( player.IsLoggedIn )
TShock.InventoryDB.InsertPlayerData(player);
player.Disconnect(string.Format("Kicked: {0}", reason));
Log.ConsoleInfo(string.Format("Kicked {0} for : {1}", playerName, reason));
string verb = force ? "force " : "";