1.4.3a
- New feature permban permission (@css/permban) - CustomCommand fix - Version checker - Minor changes - Updated to CounterStrikeSharp 225 - Bump version to 1.4.3a
This commit is contained in:
parent
342d4f717f
commit
19f8b68c1c
30 changed files with 308 additions and 255 deletions
|
|
@ -21,7 +21,7 @@ namespace CS2_SimpleAdmin
|
|||
player.IsValid && player.SteamID.ToString().Length == 17 &&
|
||||
player is { PawnIsAlive: true, IsHLTV: false }).ToList();
|
||||
|
||||
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
|
||||
Helper.SendDiscordLogMessage(caller, command, DiscordWebhookClientLog, _localizer);
|
||||
|
||||
playersToTarget.ForEach(player =>
|
||||
{
|
||||
|
|
@ -39,7 +39,7 @@ namespace CS2_SimpleAdmin
|
|||
|
||||
Helper.LogCommand(caller, $"css_noclip {player.PlayerName}");
|
||||
|
||||
if (caller != null && silentPlayers.Contains(caller.Slot)) return;
|
||||
if (caller != null && SilentPlayers.Contains(caller.Slot)) return;
|
||||
foreach (var controller in Helper.GetValidPlayers())
|
||||
{
|
||||
using (new WithTemporaryCulture(controller.GetLanguage()))
|
||||
|
|
@ -62,7 +62,7 @@ namespace CS2_SimpleAdmin
|
|||
var targets = GetTarget(command);
|
||||
var playersToTarget = targets!.Players.Where(player => player is { IsValid: true, PawnIsAlive: true, IsHLTV: false }).ToList();
|
||||
|
||||
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
|
||||
Helper.SendDiscordLogMessage(caller, command, DiscordWebhookClientLog, _localizer);
|
||||
|
||||
playersToTarget.ForEach(player =>
|
||||
{
|
||||
|
|
@ -87,7 +87,7 @@ namespace CS2_SimpleAdmin
|
|||
if (time > 0)
|
||||
AddTimer(time, () => player?.Pawn.Value!.Unfreeze(), CounterStrikeSharp.API.Modules.Timers.TimerFlags.STOP_ON_MAPCHANGE);
|
||||
|
||||
if (caller != null && silentPlayers.Contains(caller.Slot)) return;
|
||||
if (caller != null && SilentPlayers.Contains(caller.Slot)) return;
|
||||
foreach (var controller in Helper.GetValidPlayers())
|
||||
{
|
||||
using (new WithTemporaryCulture(controller.GetLanguage()))
|
||||
|
|
@ -127,10 +127,10 @@ namespace CS2_SimpleAdmin
|
|||
if (command != null)
|
||||
{
|
||||
Helper.LogCommand(caller, command);
|
||||
Helper.SendDiscordLogMessage(caller, command, _discordWebhookClientLog, _localizer);
|
||||
Helper.SendDiscordLogMessage(caller, command, DiscordWebhookClientLog, _localizer);
|
||||
}
|
||||
|
||||
if (caller != null && silentPlayers.Contains(caller.Slot)) return;
|
||||
if (caller != null && SilentPlayers.Contains(caller.Slot)) return;
|
||||
foreach (var controller in Helper.GetValidPlayers())
|
||||
{
|
||||
using (new WithTemporaryCulture(controller.GetLanguage()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue