You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: TShockAPI/TSPlayer.cs
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -351,6 +351,9 @@ public int RespawnTimer
351
351
/// <summary>Determines if the player is disabled for not clearing their trash. A re-login is the only way to reset this.</summary>
352
352
publicboolIsDisabledPendingTrashRemoval;
353
353
354
+
/// <summary>Determines if the player has finished the handshake (Sent all necessary packets for connection, such as Request World Data, Spawn Player, etc). A normal client would do all of this no problem.</summary>
355
+
publicboolFinishedHandshake=false;
356
+
354
357
/// <summary>Checks to see if active throttling is happening on events by Bouncer. Rejects repeated events by malicious clients in a short window.</summary>
355
358
/// <returns>If the player is currently being throttled by Bouncer, or not.</returns>
if(!tsplr.SilentKickInProgress&&tsplr.State>=3&&tsplr.FinishedHandshake)//The player has left, do not broadcast any clients exploiting the behaviour of not spawning their player.
1441
1444
Utils.Broadcast(GetString("{0} has left.",tsplr.Name),Color.Yellow);
Copy file name to clipboardExpand all lines: docs/changelog.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,8 @@ Use past tense when adding new entries; sign your name off when you add or chang
78
78
* If there is no section called "Upcoming changes" below this line, please add one with `## Upcoming changes` as the first line, and then a bulleted item directly after with the first change. -->
79
79
80
80
## Upcoming changes
81
+
* Added a variable for handshake (True upon spawn player), clients no longer notify others of their presence and cant chat if this is never set to true. (@ohayo)
82
+
* Fixed a security issue with how bans are handled on join. (@ohayo)
81
83
* Fixed `/dump-reference-data` mutate the command names. (#2943, @sgkoishi)
82
84
* Added `ParryDamageBuff` (Striking Moment with Brand of the Inferno and shield) for player, updated `CursedInferno` buff for NPC (@sgkoishi, #3005)
83
85
* Changed the use of `Player.active` to `TSPlayer.Active` for consistency. (@sgkoishi, #2939)
0 commit comments