- Fetch admins and groups data only once
- Added missing migration
This commit is contained in:
Dawid Bepierszcz
2024-05-16 21:51:13 +02:00
parent fc2958c84f
commit 873fed17c9
6 changed files with 13 additions and 16 deletions

View File

@@ -20,7 +20,7 @@ public partial class CS2_SimpleAdmin
AddCommandListener("say", OnCommandSay);
AddCommandListener("say_team", OnCommandTeamSay);
}
[GameEventHandler]
public HookResult OnClientDisconnect(EventPlayerDisconnect @event, GameEventInfo info)
{
@@ -331,15 +331,6 @@ public partial class CS2_SimpleAdmin
Logger.LogWarning($"Unable to make metrics call: {ex.Message}");
}
}
//await _adminManager.GiveAllGroupsFlags();
//await _adminManager.GiveAllFlags();
await Server.NextFrameAsync(() =>
{
ReloadAdmins(null);
});
});
}, CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);