Fix open command flag (#344)

This commit is contained in:
Isaac
2024-12-24 04:40:33 -08:00
committed by GitHub

View File

@@ -38,7 +38,7 @@ public class WardenOpenCommandsBehavior(IWardenService warden,
[ConsoleCommand("css_o", "Opens the cell doors")]
public void Command_Open(CCSPlayerController? executor, CommandInfo info) {
if (executor != null
&& !AdminManager.PlayerHasPermissions(executor, "@css/cheat")) {
&& !AdminManager.PlayerHasPermissions(executor, "@css/cheats")) {
if (!warden.IsWarden(executor)) {
msg.NotWarden.ToChat(executor);
return;