Skip to content

fix(player-management): kick refused players with a reason instead of the empty ticket loop - #358

Open
Flegma wants to merge 1 commit into
mainfrom
fix/pm-refused-kick-reason
Open

Flegma wants to merge 1 commit into
mainfrom
fix/pm-refused-kick-reason

Conversation

@Flegma

@Flegma Flegma commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator

A player the access list refuses on a server without a password is let in and kicked with the reason, instead of getting an empty Steam ticket.

  • The empty ticket makes the client retry the challenge forever, each try holding a slot; the password refusal stays as it was.
  • The connect gate records its own verdict, so the kick happens before the sanctions answer and the refused player cannot chat meanwhile; a connect under the id of a player already on the server changes nothing.
  • CounterStrikeSharp cannot put a reason on a kick, so the player is moved to spectators, shown the reason in chat and center text, and kicked 4 s later.
  • Builds on fix(player-management-sw): refuse a banned player's rejoin at connect #356: a banned rejoin is refused at the door on a password server; without one Enforce kicks it again.

Tested: apps/player-management-sw/test (372 passed), player-management-css Release build.

… the empty ticket loop

Without a server password the access gate stripped the Steam ticket, which loops the client on reconnect and holds a slot. The player is now let in and kicked with the access list reason before the sanctions answer, cannot chat meanwhile, and a connect under the id of a player already here changes nothing. On CounterStrikeSharp the reason is shown in chat and center text before a delayed kick. The password refusal is unchanged; a banned rejoin is refused at the door only on a password server.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant