mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-03-05 07:00:03 +00:00
restored css_admin to open the menu
This commit is contained in:
@@ -10,6 +10,7 @@ using CounterStrikeSharp.API.Modules.Entities;
|
|||||||
using CounterStrikeSharp.API.Modules.Utils;
|
using CounterStrikeSharp.API.Modules.Utils;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
using System.Text;
|
using System.Text;
|
||||||
|
using CS2_SimpleAdmin.Menus;
|
||||||
using Discord.Rest;
|
using Discord.Rest;
|
||||||
|
|
||||||
namespace CS2_SimpleAdmin
|
namespace CS2_SimpleAdmin
|
||||||
@@ -47,6 +48,16 @@ namespace CS2_SimpleAdmin
|
|||||||
[ConsoleCommand("css_admin")]
|
[ConsoleCommand("css_admin")]
|
||||||
[RequiresPermissions("@css/generic")]
|
[RequiresPermissions("@css/generic")]
|
||||||
public void OnAdminCommand(CCSPlayerController? caller, CommandInfo command)
|
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;
|
if (caller == null || !caller.IsValid) return;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user