mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
1.7.2c
- Fixed no permissions in menu and perm penalty (due to authorization issue on steam) - Fixed non-async action in async method
This commit is contained in:
parent
ab14956ae5
commit
8cc0398f6b
16 changed files with 74 additions and 67 deletions
|
|
@ -1,5 +1,6 @@
|
|||
using CounterStrikeSharp.API.Core;
|
||||
using CounterStrikeSharp.API.Modules.Admin;
|
||||
using CounterStrikeSharp.API.Modules.Entities;
|
||||
|
||||
namespace CS2_SimpleAdmin.Menus;
|
||||
|
||||
|
|
@ -11,7 +12,7 @@ public static class ManageAdminsMenu
|
|||
return;
|
||||
|
||||
var localizer = CS2_SimpleAdmin._localizer;
|
||||
if (AdminManager.PlayerHasPermissions(admin, "@css/root") == false)
|
||||
if (AdminManager.PlayerHasPermissions(new SteamID(admin.SteamID), "@css/root") == false)
|
||||
{
|
||||
admin.PrintToChat(localizer?["sa_prefix"] ??
|
||||
"[SimpleAdmin] " +
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue