mirror of
https://github.com/daffyyyy/CS2-SimpleAdmin.git
synced 2026-10-18 12:57:04 +02:00
upstream to 1.7.7-alpha-10
This commit is contained in:
commit
2de2924cef
106 changed files with 5897 additions and 3306 deletions
|
|
@ -5,15 +5,15 @@ namespace CS2_SimpleAdmin.Managers;
|
|||
|
||||
public class ChatManager
|
||||
{
|
||||
public void AddChatMessageDB(string playerSteam64, string playerName, string message, bool? team)
|
||||
public void AddChatMessageDB(string playerSteam64, string playerName, string message, bool? team)
|
||||
{
|
||||
if (CS2_SimpleAdmin.Database == null) return;
|
||||
|
||||
Task.Run(async () =>
|
||||
if (CS2_SimpleAdmin.DatabaseProvider == null) return;
|
||||
|
||||
Task.Run(async () =>
|
||||
{
|
||||
try
|
||||
{
|
||||
await using var connection = await CS2_SimpleAdmin.Database.GetConnectionAsync();
|
||||
await using var connection = await CS2_SimpleAdmin.DatabaseProvider.CreateConnectionAsync();
|
||||
|
||||
var sql = "INSERT INTO `sa_chatlogs` (`playerSteam64`, `playerName`, `message`, `team`, `created`, `serverId`) " +
|
||||
"VALUES (@playerSteam64, @playerName, @message, @team, @created, @serverId)";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue