mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-02-25 04:42:47 +00:00
1.6.3a
```diff + Recompiled for css 276 - this is the minimum version on which the plugin works + Added ability to check player penalties for admin with `@css/kick` flag - css_comms [#userid/name]. + Added a new setting `ShowBanMenuIfNoTime` which allows you to disable the display of the menu when you don't specify a penalty time ```
This commit is contained in:
@@ -38,7 +38,7 @@ public partial class CS2_SimpleAdmin
|
||||
{
|
||||
if (!caller.CanTarget(player)) return;
|
||||
|
||||
if (!int.TryParse(command.GetArg(2), out var time) && caller != null && caller.IsValid)
|
||||
if (!int.TryParse(command.GetArg(2), out var time) && caller != null && caller.IsValid && Config.OtherSettings.ShowBanMenuIfNoTime)
|
||||
{
|
||||
DurationMenu.OpenMenu(caller, $"{_localizer?["sa_ban"] ?? "Ban"}: {player.PlayerName}", player,
|
||||
ManagePlayersMenu.BanMenu);
|
||||
|
||||
Reference in New Issue
Block a user