From 00819beec52f2fa82982fab8130b32c47eb6469b Mon Sep 17 00:00:00 2001 From: Valentin Barat Date: Mon, 12 Feb 2024 15:42:03 +0100 Subject: [PATCH] restored css_admin to open the menu --- Commands/basecommands.cs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Commands/basecommands.cs b/Commands/basecommands.cs index a146b55..d69e5f5 100644 --- a/Commands/basecommands.cs +++ b/Commands/basecommands.cs @@ -10,6 +10,7 @@ using CounterStrikeSharp.API.Modules.Entities; using CounterStrikeSharp.API.Modules.Utils; using Microsoft.Extensions.Logging; using System.Text; +using CS2_SimpleAdmin.Menus; using Discord.Rest; namespace CS2_SimpleAdmin @@ -47,6 +48,16 @@ namespace CS2_SimpleAdmin [ConsoleCommand("css_admin")] [RequiresPermissions("@css/generic")] public void OnAdminCommand(CCSPlayerController? caller, CommandInfo command) + { + if (caller == null || caller.IsValid == false) + return; + + AdminMenu.OpenMenu(caller); + } + + [ConsoleCommand("css_adminhelp")] + [RequiresPermissions("@css/generic")] + public void OnAdminHelpCommand(CCSPlayerController? caller, CommandInfo command) { if (caller == null || !caller.IsValid) return;