- Fixed css_warn (unfreeze player after 5s)
- Fixed server loading from database (reduced delay)
- Added checking the player in an earlier phase of the connection
- Fixed admin name when using action from menu
This commit is contained in:
Dawid Bepierszcz 2024-12-16 01:55:38 +01:00
parent 8c94a867d3
commit 8af805632a
11 changed files with 111 additions and 25 deletions

View file

@ -96,7 +96,7 @@ public class PermissionManager(Database.Database? database)
// Console.WriteLine($"Player SteamID: {player.PlayerSteamId}, Name: {player.PlayerName}, Flags: {string.Join(", ", player.Flags)}, Immunity: {player.Immunity}, Ends: {player.Ends}");
// }
List<(string, string, List<string>, int, DateTime?)> filteredFlagsWithImmunity = [];
List<(string, string, List<string>, int, DateTime?)> filteredFlagsWithImmunity = [];
// Add the grouped players to the list
filteredFlagsWithImmunity.AddRange(groupedPlayers);

View file

@ -124,7 +124,7 @@ public class PlayerManager
var victim = Utilities.GetPlayerFromUserid(userId);
if (victim == null || !victim.UserId.HasValue) return;
if (CS2_SimpleAdmin.UnlockedCommands)
Server.ExecuteCommand($"banid 1 {userId}");

View file

@ -27,7 +27,7 @@ public class ServerManager
{
ipAddress = Helper.GetServerIp();
if (_getIpTryCount <= 32)
if (_getIpTryCount <= 32 && (string.IsNullOrEmpty(ipAddress) || ipAddress.StartsWith("0.0.0")))
{
_getIpTryCount++;