void ExecutePlayerUpdate() { foreach (Fougerite.Player player in Server.GetServer().Players) { if (player.IsOnline) { Hooks.PlayerUpdate(player); } } CTimer.SetTimer(() => ExecutePlayerUpdate(), 1000, 1); }
void Start() { CTimer.SetTimer(() => ExecutePlayerUpdate(), 1000, 1); }