1.3.6d - IMPORTANT

- Fixed pool size
- Fixed `css_rename`
- Updated CounterStrikeSharp
- Minor changes
This commit is contained in:
Dawid Bepierszcz
2024-03-23 23:41:17 +01:00
parent cce265c6b7
commit a8904f2d8a
9 changed files with 147 additions and 105 deletions

View File

@@ -33,7 +33,12 @@ namespace CS2_SimpleAdmin
commandSql.CommandText = commandText;
await commandSql.ExecuteNonQueryAsync();
command.ReplyToCommand("Successfully updated the database");
commandText = "ALTER TABLE `sa_servers` MODIFY COLUMN `hostname` varchar(128);";
using var commandSql1 = connection.CreateCommand();
commandSql1.CommandText = commandText;
await commandSql1.ExecuteNonQueryAsync();
command.ReplyToCommand($"Successfully updated the database - {ModuleVersion}");
}
catch (Exception ex)
{

View File

@@ -662,7 +662,6 @@ namespace CS2_SimpleAdmin
if (caller!.CanTarget(player))
{
player.Rename(newName);
if (caller == null || caller != null && !silentPlayers.Contains(caller.Slot))
{
@@ -676,6 +675,8 @@ namespace CS2_SimpleAdmin
}
}
}
player.Rename(newName);
}
});
}
@@ -815,6 +816,7 @@ namespace CS2_SimpleAdmin
_discordWebhookClientLog.SendMessageAsync(Helper.GenerateMessageDiscord(_localizer["sa_discord_log_command", $"[{callerName}]({communityUrl})", command.GetCommandString]));
}
Helper.LogCommand(caller, command);
playersToTarget.ForEach(player =>