Merge branch 'daffyyyy:main' into main

This commit is contained in:
cristóbal 2024-03-23 22:46:59 -03:00 • committed by GitHub
commit 1102b6573f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
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 =>