diff --git a/CS2-SimpleAdmin/CS2-SimpleAdmin.cs b/CS2-SimpleAdmin/CS2-SimpleAdmin.cs index 5a66790..190533a 100644 --- a/CS2-SimpleAdmin/CS2-SimpleAdmin.cs +++ b/CS2-SimpleAdmin/CS2-SimpleAdmin.cs @@ -19,7 +19,7 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig "CS2-SimpleAdmin" + (Helper.IsDebugBuild ? " (DEBUG)" : " (RELEASE)"); public override string ModuleDescription => "Simple admin plugin for Counter-Strike 2 :)"; public override string ModuleAuthor => "daffyy & Dliix66"; - public override string ModuleVersion => "1.6.6a"; + public override string ModuleVersion => "1.6.7a"; public override void Load(bool hotReload) { diff --git a/CS2-SimpleAdmin/Commands/RegisterCommands.cs b/CS2-SimpleAdmin/Commands/RegisterCommands.cs index 9c64469..6ef9b48 100644 --- a/CS2-SimpleAdmin/Commands/RegisterCommands.cs +++ b/CS2-SimpleAdmin/Commands/RegisterCommands.cs @@ -77,7 +77,8 @@ public static class RegisterCommands new CommandMapping("css_prename", CS2_SimpleAdmin.Instance.OnPrenameCommand), new CommandMapping("css_respawn", CS2_SimpleAdmin.Instance.OnRespawnCommand), new CommandMapping("css_tp", CS2_SimpleAdmin.Instance.OnGotoCommand), - new CommandMapping("css_bring", CS2_SimpleAdmin.Instance.OnBringCommand) + new CommandMapping("css_bring", CS2_SimpleAdmin.Instance.OnBringCommand), + new CommandMapping("css_pluginsmanager", CS2_SimpleAdmin.Instance.OnPluginManagerCommand) ]; public static void InitializeCommands() @@ -158,7 +159,8 @@ private static void CreateConfig() { "css_prename", new Command { Aliases = ["css_prename"] } }, { "css_respawn", new Command { Aliases = ["css_respawn"] } }, { "css_tp", new Command { Aliases = ["css_tp", "css_tpto", "css_goto"] } }, - { "css_bring", new Command { Aliases = ["css_bring", "css_tphere"] } } + { "css_bring", new Command { Aliases = ["css_bring", "css_tphere"] } }, + { "css_pluginsmanager", new Command { Aliases = ["css_pluginsmanager", "css_pluginmanager"] } } } }; diff --git a/CS2-SimpleAdmin/Commands/basecommands.cs b/CS2-SimpleAdmin/Commands/basecommands.cs index 4fcd745..8f2e94b 100644 --- a/CS2-SimpleAdmin/Commands/basecommands.cs +++ b/CS2-SimpleAdmin/Commands/basecommands.cs @@ -1,3 +1,4 @@ +using System.Collections; using CounterStrikeSharp.API; using CounterStrikeSharp.API.Core; using CounterStrikeSharp.API.Core.Translations; @@ -13,6 +14,9 @@ using Microsoft.Extensions.Logging; using Newtonsoft.Json; using System.Globalization; +using System.Reflection; +using CounterStrikeSharp.API.Core.Attributes.Registration; +using MenuManager; namespace CS2_SimpleAdmin; @@ -890,6 +894,76 @@ public void OnRestartCommand(CCSPlayerController? caller, CommandInfo command) RestartGame(caller); } + [RequiresPermissions("@css/root")] + [CommandHelper(whoCanExecute: CommandUsage.CLIENT_ONLY)] + public void OnPluginManagerCommand(CCSPlayerController? caller, CommandInfo commandInfo) + { + if (MenuApi == null || caller == null) + return; + + var pluginManager = Helper.GetPluginManager(); + if (pluginManager == null) + { + Logger.LogError("Unable to access PluginManager."); + return; + } + + var getLoadedPluginsMethod = pluginManager.GetType().GetMethod("GetLoadedPlugins", BindingFlags.Public | BindingFlags.Instance); + if (getLoadedPluginsMethod?.Invoke(pluginManager, null) is not IEnumerable plugins) + { + Logger.LogError("Unable to retrieve plugins."); + return; + } + + var pluginsMenu = Helper.CreateMenu(Localizer["sa_menu_pluginsmanager_title"]); + + foreach (var plugin in plugins) + { + var pluginType = plugin.GetType(); + + // Accessing each property with the Type of the plugin + var pluginId = pluginType.GetProperty("PluginId")?.GetValue(plugin); + var state = pluginType.GetProperty("State")?.GetValue(plugin)?.ToString(); + var path = pluginType.GetProperty("FilePath")?.GetValue(plugin)?.ToString(); + path = Path.GetFileName(Path.GetDirectoryName(path)); + + // Access nested properties within "Plugin" (like ModuleName, ModuleVersion, etc.) + var nestedPlugin = pluginType.GetProperty("Plugin")?.GetValue(plugin); + if (nestedPlugin == null) continue; + + var status = state?.ToUpper() != "UNLOADED" ? "ON" : "OFF"; + var allowedMenuTypes = new[] { "chat", "console" }; + + if (!allowedMenuTypes.Contains(Config.MenuConfigs.MenuType) && MenuApi.GetMenuType(caller) >= MenuType.CenterMenu) + status = state?.ToUpper() != "UNLOADED" ? "ON" : "OFF"; + var nestedType = nestedPlugin.GetType(); + var moduleName = nestedType.GetProperty("ModuleName")?.GetValue(nestedPlugin)?.ToString() ?? "Unknown"; + var moduleVersion = nestedType.GetProperty("ModuleVersion")?.GetValue(nestedPlugin)?.ToString(); + // var moduleAuthor = nestedType.GetProperty("ModuleAuthor")?.GetValue(nestedPlugin)?.ToString(); + // var moduleDescription = nestedType.GetProperty("ModuleDescription")?.GetValue(nestedPlugin)?.ToString(); + + pluginsMenu?.AddMenuOption($"({status}) [{moduleName} {moduleVersion}]", (_, _) => + { + if (state?.ToUpper() != "UNLOADED") + { + caller.SendLocalizedMessage(Localizer, "sa_menu_pluginsmanager_unloaded", moduleName); + Server.ExecuteCommand($"css_plugins unload {pluginId}"); + } + else + { + caller.SendLocalizedMessage(Localizer, "sa_menu_pluginsmanager_loaded", moduleName); + Server.ExecuteCommand($"css_plugins load {path}"); + } + + AddTimer(0.1f, () => OnPluginManagerCommand(caller, commandInfo)); + }); + + // Console.WriteLine($"[#{pluginId}:{state?.ToUpper()}]: \"{moduleName ?? "Unknown"}\" ({moduleVersion ?? "Unknown"}) by {moduleAuthor}"); + } + + pluginsMenu?.Open(caller); + } + public static void RestartGame(CCSPlayerController? admin) { Helper.LogCommand(admin, "css_restartgame"); diff --git a/CS2-SimpleAdmin/Helper.cs b/CS2-SimpleAdmin/Helper.cs index f5d73b9..82e58ec 100644 --- a/CS2-SimpleAdmin/Helper.cs +++ b/CS2-SimpleAdmin/Helper.cs @@ -18,6 +18,7 @@ using System.Text; using System.Text.Json; using System.Text.RegularExpressions; +using CounterStrikeSharp.API.Core.Plugin.Host; using CounterStrikeSharp.API.Modules.Entities.Constants; using CS2_SimpleAdmin.Managers; using MenuManager; @@ -544,6 +545,18 @@ _ when menuType.Equals("console", StringComparison.CurrentCultureIgnoreCase) => return menu; } + + internal static IPluginManager? GetPluginManager() + { + // Access the singleton instance of Application + var applicationInstance = Application.Instance; + + // Use Reflection to access the private _pluginManager field + var pluginManagerField = typeof(Application).GetField("_pluginManager", BindingFlags.NonPublic | BindingFlags.Instance); + var pluginManager = pluginManagerField?.GetValue(applicationInstance) as IPluginManager; + + return pluginManager; + } } public static class PluginInfo diff --git a/CS2-SimpleAdmin/VERSION b/CS2-SimpleAdmin/VERSION index dcfd624..f852f5f 100644 --- a/CS2-SimpleAdmin/VERSION +++ b/CS2-SimpleAdmin/VERSION @@ -1 +1 @@ -1.6.6a \ No newline at end of file +1.6.7a \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/ar.json b/CS2-SimpleAdmin/lang/ar.json index e9a2de7..b2e1e40 100644 --- a/CS2-SimpleAdmin/lang/ar.json +++ b/CS2-SimpleAdmin/lang/ar.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "إدارة اللاعبين", "sa_menu_disconnected_title": "اللاعبون الأخيرون", "sa_menu_disconnected_action_title": "اختر الإجراء", + "sa_menu_pluginsmanager_title": "إدارة الإضافات", "sa_player": "اللاعب", "sa_console": "وحدة التحكم", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}الإداري: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(إداري) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(لاعب) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** أصدر الأمر `{1}` على الخادم `HOSTNAME`" + "sa_discord_log_command": "**{0}** أصدر الأمر `{1}` على الخادم `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}مفعل {default}الإضافة {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}معطل {default}الإضافة {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/de.json b/CS2-SimpleAdmin/lang/de.json index 658e9df..828eb50 100644 --- a/CS2-SimpleAdmin/lang/de.json +++ b/CS2-SimpleAdmin/lang/de.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Spieler verwalten", "sa_menu_disconnected_title": "Letzte Spieler", "sa_menu_disconnected_action_title": "Aktion auswählen", + "sa_menu_pluginsmanager_title": "Plugins verwalten", "sa_player": "Spieler", "sa_console": "Konsole", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(SPIELER) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** hat den Befehl `{1}` auf dem Server `HOSTNAME` ausgeführt" + "sa_discord_log_command": "**{0}** hat den Befehl `{1}` auf dem Server `HOSTNAME` ausgeführt", + "sa_menu_pluginsmanager_loaded": "{lime}Aktiviert {default}Plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Deaktiviert {default}Plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/en.json b/CS2-SimpleAdmin/lang/en.json index 19a8029..e2b50e1 100644 --- a/CS2-SimpleAdmin/lang/en.json +++ b/CS2-SimpleAdmin/lang/en.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Players Manage", "sa_menu_disconnected_title": "Recent players", "sa_menu_disconnected_action_title": "Select action", + "sa_menu_pluginsmanager_title": "Plugins Manage", "sa_player": "Player", "sa_console": "Console", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(PLAYER) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** issued command `{1}` on server `HOSTNAME`" + "sa_discord_log_command": "**{0}** issued command `{1}` on server `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Enabled {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Disabled {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/es.json b/CS2-SimpleAdmin/lang/es.json index 98efe81..b873c87 100644 --- a/CS2-SimpleAdmin/lang/es.json +++ b/CS2-SimpleAdmin/lang/es.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Administrar Jugadores", "sa_menu_disconnected_title": "Jugadores recientes", "sa_menu_disconnected_action_title": "Seleccionar acción", + "sa_menu_pluginsmanager_title": "Gestionar plugins", "sa_player": "Jugador", "sa_console": "Consola", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(JUGADOR) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** ejecutó el comando `{1}` en el servidor `HOSTNAME`" + "sa_discord_log_command": "**{0}** ejecutó el comando `{1}` en el servidor `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Habilitado {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Deshabilitado {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/fa.json b/CS2-SimpleAdmin/lang/fa.json index cd88380..92b33ae 100644 --- a/CS2-SimpleAdmin/lang/fa.json +++ b/CS2-SimpleAdmin/lang/fa.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "مدیریت بازیکنان", "sa_menu_disconnected_title": "آخرین بازیکنان", "sa_menu_disconnected_action_title": "انتخاب عملیات", + "sa_menu_pluginsmanager_title": "مدیریت پلاگین‌ها", "sa_player": "بازیکن", "sa_console": "کنسول", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ادمین: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ادمین) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(بازیکن) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** فرمان `{1}` را در سرور `HOSTNAME` اجرا کرد" + "sa_discord_log_command": "**{0}** فرمان `{1}` را در سرور `HOSTNAME` اجرا کرد", + "sa_menu_pluginsmanager_loaded": "{lime}فعال {default}پلاگین {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}غیرفعال {default}پلاگین {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/fr.json b/CS2-SimpleAdmin/lang/fr.json index b0fa4c4..0579d54 100644 --- a/CS2-SimpleAdmin/lang/fr.json +++ b/CS2-SimpleAdmin/lang/fr.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Gérer les joueurs", "sa_menu_disconnected_title": "Derniers joueurs", "sa_menu_disconnected_action_title": "Choisir une action", + "sa_menu_pluginsmanager_title": "Gérer les plugins", "sa_player": "Joueur", "sa_console": "Console", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(JOUEUR) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** a exécuté la commande `{1}` sur le serveur `HOSTNAME`" + "sa_discord_log_command": "**{0}** a exécuté la commande `{1}` sur le serveur `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Activé {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Désactivé {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/lv.json b/CS2-SimpleAdmin/lang/lv.json index 555f814..b489de1 100644 --- a/CS2-SimpleAdmin/lang/lv.json +++ b/CS2-SimpleAdmin/lang/lv.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Spēlētāju pārvaldība", "sa_menu_disconnected_title": "Pēdējie spēlētāji", "sa_menu_disconnected_action_title": "Izvēlieties darbību", + "sa_menu_pluginsmanager_title": "Pārvaldīt spraudņus", "sa_player": "Spēlētājs", "sa_console": "Konsole", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(SPĒLĒTĀJS) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** izpildīja komandu `{1}` serverī `HOSTNAME`" + "sa_discord_log_command": "**{0}** izpildīja komandu `{1}` serverī `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Ieslēgts {default}spraudnis {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Izslēgts {default}spraudnis {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/pl.json b/CS2-SimpleAdmin/lang/pl.json index 85aae90..5d57d45 100644 --- a/CS2-SimpleAdmin/lang/pl.json +++ b/CS2-SimpleAdmin/lang/pl.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Zarządzaj graczami", "sa_menu_disconnected_title": "Ostatni gracze", "sa_menu_disconnected_action_title": "Wybierz akcje", + "sa_menu_pluginsmanager_title": "Zarządzaj pluginami", "sa_player": "Gracz", "sa_console": "Konsola", @@ -124,5 +125,8 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(GRACZ) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** użył komendy `{1}` na serwerze `HOSTNAME`" + "sa_discord_log_command": "**{0}** użył komendy `{1}` na serwerze `HOSTNAME`", + + "sa_menu_pluginsmanager_loaded": "{lime}Włączono {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Wyłączono {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/pt-BR.json b/CS2-SimpleAdmin/lang/pt-BR.json index b2afcf8..9cc37be 100644 --- a/CS2-SimpleAdmin/lang/pt-BR.json +++ b/CS2-SimpleAdmin/lang/pt-BR.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Gerenciar Jogadores", "sa_menu_disconnected_title": "Jogadores recentes", "sa_menu_disconnected_action_title": "Selecionar ação", + "sa_menu_pluginsmanager_title": "Gerenciar Plugins", "sa_player": "Jogador", "sa_console": "Console", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(JOGADOR) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** executou o comando `{1}` no servidor `HOSTNAME`" + "sa_discord_log_command": "**{0}** executou o comando `{1}` no servidor `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Ativado {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Desativado {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/pt-PT.json b/CS2-SimpleAdmin/lang/pt-PT.json index 4e232ea..ec51e25 100644 --- a/CS2-SimpleAdmin/lang/pt-PT.json +++ b/CS2-SimpleAdmin/lang/pt-PT.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Gerenciar Jogadores", "sa_menu_disconnected_title": "Jogadores recentes", "sa_menu_disconnected_action_title": "Selecionar ação", + "sa_menu_pluginsmanager_title": "Gerir Plugins", "sa_player": "Jogador", "sa_console": "Console", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}ADMIN: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(ADMIN) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(JOGADOR) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** executou o comando `{1}` no servidor `HOSTNAME`" + "sa_discord_log_command": "**{0}** executou o comando `{1}` no servidor `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Ativado {default}plugin {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Desativado {default}plugin {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/ru.json b/CS2-SimpleAdmin/lang/ru.json index 20fe98a..9f78d7f 100644 --- a/CS2-SimpleAdmin/lang/ru.json +++ b/CS2-SimpleAdmin/lang/ru.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Управление игроками", "sa_menu_disconnected_title": "Последние игроки", "sa_menu_disconnected_action_title": "Выберите действие", + "sa_menu_pluginsmanager_title": "Управление плагинами", "sa_player": "Игрок", "sa_console": "Консоль", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}АДМИН: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(АДМИН) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(ИГРОК) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** выполнил команду `{1}` на сервере `HOSTNAME`" + "sa_discord_log_command": "**{0}** выполнил команду `{1}` на сервере `HOSTNAME`", + "sa_menu_pluginsmanager_loaded": "{lime}Включен {default}плагин {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Выключен {default}плагин {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/tr.json b/CS2-SimpleAdmin/lang/tr.json index 8d8884b..e2f6192 100644 --- a/CS2-SimpleAdmin/lang/tr.json +++ b/CS2-SimpleAdmin/lang/tr.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "Oyuncu Yönetimi", "sa_menu_disconnected_title": "Son oyuncular", "sa_menu_disconnected_action_title": "Eylem seçin", + "sa_menu_pluginsmanager_title": "Eklentileri Yönet", "sa_player": "Oyuncu", "sa_console": "Konsol", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}Yönetici: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(Yönetici) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(Oyuncu) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** `{1}` komutunu `HOSTNAME` sunucusunda gerçekleştirdi" + "sa_discord_log_command": "**{0}** `{1}` komutunu `HOSTNAME` sunucusunda gerçekleştirdi", + "sa_menu_pluginsmanager_loaded": "{lime}Etkinleştirildi {default}eklenti {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}Devre Dışı Bırakıldı {default}eklenti {lightred}{0}" } \ No newline at end of file diff --git a/CS2-SimpleAdmin/lang/zh-Hans.json b/CS2-SimpleAdmin/lang/zh-Hans.json index 4703451..5651a29 100644 --- a/CS2-SimpleAdmin/lang/zh-Hans.json +++ b/CS2-SimpleAdmin/lang/zh-Hans.json @@ -47,6 +47,7 @@ "sa_menu_players_manage": "玩家管理", "sa_menu_disconnected_title": "最近的玩家", "sa_menu_disconnected_action_title": "选择操作", + "sa_menu_pluginsmanager_title": "管理插件", "sa_player": "玩家", "sa_console": "控制台", @@ -124,5 +125,7 @@ "sa_adminsay_prefix": "{RED}管理员: {lightred}{0}{default}", "sa_adminchat_template_admin": "{LIME}(管理员) {lightred}{0}{default}: {lightred}{1}{default}", "sa_adminchat_template_player": "{SILVER}(玩家) {lightred}{0}{default}: {lightred}{1}{default}", - "sa_discord_log_command": "**{0}** 在服务器 `HOSTNAME` 上发出了 `{1}` 命令" + "sa_discord_log_command": "**{0}** 在服务器 `HOSTNAME` 上发出了 `{1}` 命令", + "sa_menu_pluginsmanager_loaded": "{lime}已启用 {default}插件 {lime}{0}", + "sa_menu_pluginsmanager_unloaded": "{lightred}已禁用 {default}插件 {lightred}{0}" } \ No newline at end of file