From 7154843d1d9c17eac3f114cbb33eae54e193f029 Mon Sep 17 00:00:00 2001 From: Dawid Bepierszcz <41084667+daffyyyy@users.noreply.github.com> Date: Thu, 31 Oct 2024 03:51:49 +0100 Subject: [PATCH] Update ManageServerMenu.cs --- CS2-SimpleAdmin/Menus/ManageServerMenu.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CS2-SimpleAdmin/Menus/ManageServerMenu.cs b/CS2-SimpleAdmin/Menus/ManageServerMenu.cs index 4f1e5f6..f0f48d2 100644 --- a/CS2-SimpleAdmin/Menus/ManageServerMenu.cs +++ b/CS2-SimpleAdmin/Menus/ManageServerMenu.cs @@ -26,11 +26,17 @@ public static void OpenMenu(CCSPlayerController admin) // permissions var hasMap = AdminManager.CommandIsOverriden("css_map") ? AdminManager.PlayerHasPermissions(admin, AdminManager.GetPermissionOverrides("css_map")) : AdminManager.PlayerHasPermissions(admin, "@css/changemap"); + var hasPlugins = AdminManager.CommandIsOverriden("css_pluginsmanager") ? AdminManager.PlayerHasPermissions(admin, AdminManager.GetPermissionOverrides("css_pluginsmanager")) : AdminManager.PlayerHasPermissions(admin, "@css/root"); //bool hasMap = AdminManager.PlayerHasPermissions(admin, "@css/changemap"); // options added in order + if (hasPlugins) + { + options.Add(new ChatMenuOptionData(localizer?["sa_menu_pluginsmanager_title"] ?? "Manage Plugins", () => admin.ExecuteClientCommandFromServer("css_pluginsmanager"))); + } + if (hasMap) { options.Add(new ChatMenuOptionData(localizer?["sa_changemap"] ?? "Change Map", () => ChangeMapMenu(admin)));