You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewException($"CS2 Surf ERROR >> OnPlayerConnect -> Failed to write new player to database, this shouldnt happen. Player: {name} ({player.SteamID})");
@@ -123,7 +123,7 @@ public HookResult OnPlayerDisconnect(EventPlayerDisconnect @event, GameEventInfo
123
123
else
124
124
{
125
125
// Update data in Player DB table
126
-
Task<int>updatePlayerTask=DB.Write($"UPDATE `Player` SET country = '{playerList[player.UserId??0].Profile.Country}', `lastseen` = {(int)DateTimeOffset.UtcNow.ToUnixTimeSeconds()}, `connections` = `connections` + 1 WHERE `id` = {playerList[player.UserId??0].Profile.ID} LIMIT 1;");
126
+
Task<int>updatePlayerTask=DB.Write($"UPDATE `Player` SET country = '{playerList[player.UserId??0].Profile.Country}', `last_seen` = {(int)DateTimeOffset.UtcNow.ToUnixTimeSeconds()}, `connections` = `connections` + 1 WHERE `id` = {playerList[player.UserId??0].Profile.ID} LIMIT 1;");
127
127
if(updatePlayerTask.Result!=1)
128
128
thrownewException($"CS2 Surf ERROR >> OnPlayerDisconnect -> Failed to update player data in database. Player: {player.PlayerName} ({player.SteamID})");
0 commit comments