mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-09-27 20:17:04 +02: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:
parent
6847da2af0
commit
2bee514e32
9 changed files with 47 additions and 21 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue