"{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:
parent
9836406cfc
commit
d01ae01468
1 changed files with 6 additions and 3 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue