Bump version to 1.8.2a and add rename timer

This commit is contained in:
Dawid Bepierszcz
2026-06-17 02:59:23 +02:00
parent ca55c7f1a6
commit b0c7fd12c3
4 changed files with 13 additions and 3 deletions

View File

@@ -275,6 +275,16 @@ internal class PlayerManager
/// </remarks>
public void CheckPlayersTimer()
{
CS2_SimpleAdmin.Instance.AddTimer(5f, () =>
{
foreach (var (steamid, name) in CS2_SimpleAdmin.RenamedPlayers)
{
var player = Helper.GetPlayerFromSteamid64(steamid);
if (player == null || !player.IsValid || player.PlayerName == name) continue;
player.Rename(name);
}
});
CS2_SimpleAdmin.Instance.PlayersTimer = CS2_SimpleAdmin.Instance.AddTimer(61.0f, () =>
{
#if DEBUG