mirror of
https://github.com/ClassiCube/MCGalaxy.git
synced 2025-09-22 20:16:36 -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
@ -480,10 +480,11 @@ namespace MCGalaxy {
|
||||
}
|
||||
|
||||
//OpenClassic Client Check
|
||||
SendBlockchange(0, 0, 0, 0);
|
||||
DataTable playerDb = Database.Fill("SELECT * FROM Players WHERE Name=@0", name);
|
||||
SendBlockchange(0, 0, 0, 0);
|
||||
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