mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02:00
Changed commands to open the menu
This commit is contained in:
parent
6848847f21
commit
fb827f4f0d
1 changed files with 12 additions and 2 deletions
|
|
@ -157,9 +157,9 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
||||||
_localizer = Localizer;
|
_localizer = Localizer;
|
||||||
}
|
}
|
||||||
|
|
||||||
[ConsoleCommand("css_admin")]
|
[ConsoleCommand("css_adminhelp")]
|
||||||
[RequiresPermissions("@css/generic")]
|
[RequiresPermissions("@css/generic")]
|
||||||
public void OnAdminCommand(CCSPlayerController? caller, CommandInfo command)
|
public void OnAdminHelpCommand(CCSPlayerController? caller, CommandInfo command)
|
||||||
{
|
{
|
||||||
if (caller == null || !caller.IsValid) return;
|
if (caller == null || !caller.IsValid) return;
|
||||||
|
|
||||||
|
|
@ -170,6 +170,16 @@ public partial class CS2_SimpleAdmin : BasePlugin, IPluginConfig<CS2_SimpleAdmin
|
||||||
caller.PrintToChat(Helper.ReplaceTags($" {line}"));
|
caller.PrintToChat(Helper.ReplaceTags($" {line}"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[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_addadmin")]
|
[ConsoleCommand("css_addadmin")]
|
||||||
[CommandHelper(minArgs: 4, usage: "<steamid> <name> <flags/groups> <immunity> <duration>", whoCanExecute: CommandUsage.CLIENT_AND_SERVER)]
|
[CommandHelper(minArgs: 4, usage: "<steamid> <name> <flags/groups> <immunity> <duration>", whoCanExecute: CommandUsage.CLIENT_AND_SERVER)]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue