mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-24 05:03:34 -04:00
Make sure to always init time spent playing to 1 second before checking wit hthe database.
This commit is contained in:
parent
6bcb988dfb
commit
f484469b3f
@ -481,9 +481,10 @@ namespace MCGalaxy {
|
||||
|
||||
//OpenClassic Client Check
|
||||
SendBlockchange(0, 0, 0, 0);
|
||||
DataTable playerDb = Database.Fill("SELECT * FROM Players WHERE Name=@0", name);
|
||||
timeLogged = DateTime.Now;
|
||||
lastLogin = DateTime.Now;
|
||||
p.time = new TimeSpan(0, 0, 0, 1);
|
||||
DataTable playerDb = Database.Fill("SELECT * FROM Players WHERE Name=@0", name);
|
||||
|
||||
if (playerDb.Rows.Count == 0)
|
||||
InitPlayerStats(playerDb);
|
||||
|
Loading…
x
Reference in New Issue
Block a user