- Minor changes
- Escape kick reason @poggu suggestion
- Auto-updater for config
- Using UTC time
- Added expiring IP bans after x days (`ExpireOldIpBans` in config => value = days, 0 = disabled)
- Added exception message to database error
- Fixed? ungag/unmute/unsilence commands
- Updated css version to `178`
- Changed `css_adminhelp` command to use new file `admin_help.txt` as output
This commit is contained in:
Dawid Bepierszcz
2024-03-01 12:38:46 +01:00
parent 5bf966f9cd
commit 229b8d73a3
29 changed files with 802 additions and 815 deletions

View File

@@ -92,10 +92,10 @@ namespace CS2_SimpleAdmin
playersToTarget.ForEach(player =>
{
player.PrintToChat(Helper.ReplaceTags($"({caller!.PlayerName}) {utf8String}"));
player.PrintToChat(StringExtensions.ReplaceColorTags($"({caller!.PlayerName}) {utf8String}"));
});
command.ReplyToCommand(Helper.ReplaceTags($" Private message sent!"));
command.ReplyToCommand(StringExtensions.ReplaceColorTags($" Private message sent!"));
}
[ConsoleCommand("css_csay", "Say to all players (in center).")]
@@ -115,7 +115,7 @@ namespace CS2_SimpleAdmin
Helper.LogCommand(caller, command);
Helper.PrintToCenterAll(Helper.ReplaceTags(utf8String));
Helper.PrintToCenterAll(StringExtensions.ReplaceColorTags(utf8String));
}
[ConsoleCommand("css_hsay", "Say to all players (in hud).")]
@@ -137,7 +137,7 @@ namespace CS2_SimpleAdmin
VirtualFunctions.ClientPrintAll(
HudDestination.Alert,
Helper.ReplaceTags(utf8String),
StringExtensions.ReplaceColorTags(utf8String),
0, 0, 0, 0);
}
}