mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-10 10:20:41 -07:00
Fixup total play time in SQL databse
This commit is contained in:
parent
c712be33d8
commit
7b0ae33151
2 changed files with 2 additions and 1 deletions
Binary file not shown.
|
|
@ -113,7 +113,8 @@ public final class PlayerSQLManager {
|
|||
table.getColumn("netWorth").updateValue(player.getMonitor().getNetworth());
|
||||
table.getColumn("lastGameIp").updateValue(player.getDetails().getIpAddress());
|
||||
table.getColumn("ironManMode").updateValue(player.getIronmanManager().getMode().name());
|
||||
table.getColumn("timePlayed").updateValue((long) table.getColumn("timePlayed").getValue() + (System.currentTimeMillis() - player.getAttribute("startTime", System.currentTimeMillis()))); table.getColumn("ip").updateValue(getAddressLog((String) table.getColumn("ip").getValue(), details.getInfo().getIp()));
|
||||
table.getColumn("timePlayed").updateValue((long) table.getColumn("timePlayed").getValue() + (System.currentTimeMillis() - player.getDetails().getLastLogin()));
|
||||
table.getColumn("ip").updateValue(getAddressLog((String) table.getColumn("ip").getValue(), details.getInfo().getIp()));
|
||||
table.getColumn("mac").updateValue(getAddressLog((String) table.getColumn("mac").getValue(), details.getInfo().getMac()));
|
||||
table.getColumn("serial").updateValue(getAddressLog((String) table.getColumn("serial").getValue(), details.getInfo().getSerial()));
|
||||
table.getColumn("computerName").updateValue(getAddressLog((String) table.getColumn("computerName").getValue(), details.getInfo().getCompName()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue