mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-12-30 21:17:49 +01:00
parent
5d457223f8
commit
ae9ce49c43
@ -50,6 +50,7 @@ import com.djrapitops.plugin.logging.error.ErrorHandler;
|
||||
|
||||
import javax.inject.Inject;
|
||||
import java.util.UUID;
|
||||
import java.util.concurrent.TimeUnit;
|
||||
|
||||
/**
|
||||
* Event Listener for PlayerJoin, PlayerQuit and PlayerKickEvents.
|
||||
@ -171,7 +172,8 @@ public class PlayerOnlineListener implements Listener {
|
||||
);
|
||||
}
|
||||
|
||||
database.executeTransaction(new PlayerServerRegisterTransaction(playerUUID, player::getFirstPlayed, playerName, serverUUID));
|
||||
long registerDate = TimeUnit.SECONDS.toMillis(player.getFirstPlayed());
|
||||
database.executeTransaction(new PlayerServerRegisterTransaction(playerUUID, () -> registerDate, playerName, serverUUID));
|
||||
Session session = new Session(playerUUID, serverUUID, time, world, gm);
|
||||
session.putRawData(SessionKeys.NAME, playerName);
|
||||
session.putRawData(SessionKeys.SERVER_NAME, serverInfo.getServer().getIdentifiableName());
|
||||
|
Loading…
Reference in New Issue
Block a user