roflmuffin / CounterStrikeSharp

CounterStrikeSharp allows you to write server plugins in C# for Counter-Strike 2/Source2/CS2
https://docs.cssharp.dev
Other
786 stars 125 forks source link

Admin rights not working #182

Closed asapverneri closed 10 months ago

asapverneri commented 10 months ago

I'm having an issue with my cs2 windows dedicated server where i'm using daffyyyy's CS2-SimpleAdmin plugin. I reached out to daffyyyy and we made sure that it's not plugin issue. The problem is that i don't have permission to use admin rights. All commands works throught game server's console tho. However typing css_admins_list to server's console it shows that i'm an admin. I've tried using group instead of flags and Steamid64 as identity, but those changes doesn't make any difference.

I'm currently running latest cssharp (v112) and my admins.json looks like this:

{
  "yay": {
    "identity": "STEAM_0:0:XXXXXXXX",
    "immunity": 100,
    "flags": [
      "@css/reservation",
      "@css/generic",
      "@css/kick",
      "@css/ban",
      "@css/unban",
      "@css/vip",
      "@css/slay",
      "@css/changemap",
      "@css/cvar",
      "@css/config",
      "@css/chat",
      "@css/vote",
      "@css/password",
      "@css/rcon",
      "@css/cheats",
      "@css/root",
      "@resetscore/admin"
    ]
  }
}
Deathay commented 10 months ago

I'm having an issue with my cs2 windows dedicated server where i'm using daffyyyy's CS2-SimpleAdmin plugin. I reached out to daffyyyy and we made sure that it's not plugin issue. The problem is that i don't have permission to use admin rights. All commands works throught game server's console tho. However typing css_admins_list to server's console it shows that i'm an admin. I've tried using group instead of flags and Steamid64 as identity, but those changes doesn't make any difference.

I'm currently running latest cssharp (v112) and my admins.json looks like this:

{
  "yay": {
    "identity": "STEAM_0:0:XXXXXXXX",
  "immunity": 100,
  "flags": [
      "@css/reservation",
      "@css/generic",
      "@css/kick",
      "@css/ban",
      "@css/unban",
      "@css/vip",
      "@css/slay",
      "@css/changemap",
      "@css/cvar",
      "@css/config",
      "@css/chat",
      "@css/vote",
      "@css/password",
      "@css/rcon",
      "@css/cheats",
      "@css/root",
      "@resetscore/admin"
    ]
  }
}

Same here, someone mentioned it can be due running a windows dedicated server, are you too? it doesn't work for me for a couple of days

KillStr3aK commented 10 months ago

probably worth waiting for #143 to be merged and ensure that the issue is still persists

roflmuffin commented 10 months ago

Please try again on build 115 if you are using Windows.

asapverneri commented 10 months ago

Works with v115. Problem solved i guess :)