Skip to content
This repository was archived by the owner on Aug 23, 2025. It is now read-only.

Conversation

@Rambomst
Copy link

  • Added isDedicatedServer() method to validate if the player name matches the dedicated server player name format.
  • Updated areas adding map markers to ignore players who are flagged as dedicated servers.

- Added isDedicatedServer() method to validate if the player name
  matches the dedicated server player name format.
- Updated areas adding map markers to ignore players who are flagged as
  dedicated servers.
public static bool IsDedicatedServer(this IPlayer player)
{
string pattern = @"^dedicated_[a-fA-F0-9]{24}$";
return Regex.IsMatch(player.Profile.GetCorrectedNickname(), pattern);
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

On second through I feel like this might need to be player.Profile.Info.Nickname instead as I am assuming GetCorrectedNickname() will return a pretty name for scavs? Tbh I haven't tested this, I just noticed this issue in game.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant