SquadJS icon indicating copy to clipboard operation
SquadJS copied to clipboard

Add PLAYER_PREFIX event

Open zagor opened this issue 3 months ago • 0 comments

The player prefix, a.k.a clan tag, is a message sent by the game client rather late in the map loading sequence. It is therefore not part of the PLAYER_CONNECTED event.

You can see this message being received in the game log directly by increasing verbosity. But most server owners don't want to change log verbosity.

This log parser therefore looks for other log lines, specifically "Check Permissions", that occur before and after the hidden prefix log line. By matching these to the known sequence we can determine when prefix is avaialable.

After this event, we know the player name contains both prefix and suffix. We can thus reliably determine the player prefix.

zagor avatar Sep 20 '25 08:09 zagor