void OnServerInitialized() { m_Instance = this; InitPositionsOfMonuments(); LoadDefaultConfig(); timer.Every(Timeout, () => { if (Player.Players.Count < MinimumOnline) { this.Broadcast("ONLINE.MIN", MinimumOnline); return; } RunPromocodeEvent(); }); timer.Every(1f, OnPromocodePlayerMove); timer.Every(SpamTimeout, SpamEventMessage); }
private void Init() { _instance = this; _promocodeGroups.ForEach(p => p.FillCodes()); }