From d01ae01468f6b53abba529f457326c5d2a983c32 Mon Sep 17 00:00:00 2001 From: Lucas Nicodemus Date: Sat, 26 May 2012 11:35:08 -0600 Subject: [PATCH] "{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. --- TShockAPI/TShock.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/TShockAPI/TShock.cs b/TShockAPI/TShock.cs index a279a591..7e59e830 100644 --- a/TShockAPI/TShock.cs +++ b/TShockAPI/TShock.cs @@ -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) {