"{Player} has left" is now only displayed if their state is > 2

Fixes any issues pertaining to people connecting and being dead from
that point on. May lead to a fix for players already being on the server
that haven't yet accepted world data.
This commit is contained in:
Lucas Nicodemus 2012-05-26 11:35:08 -06:00
parent 9836406cfc
commit d01ae01468

View file

@ -751,11 +751,14 @@ namespace TShockAPI
if (tsplr != null && tsplr.ReceivedInfo)
{
if (!tsplr.SilentKickInProgress)
if (!tsplr.SilentKickInProgress || tsplr.State > 1)
{
Utils.Broadcast(tsplr.Name + " left", Color.Yellow);
if (tsplr.State >= 2)
{
Utils.Broadcast(tsplr.Name + " left", Color.Yellow);
}
}
Log.Info(string.Format("{0} left.", tsplr.Name));
Log.Info(string.Format("{0} disconnected.", tsplr.Name));
if (tsplr.IsLoggedIn && !tsplr.IgnoreActionsForClearingTrashCan)
{