mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-06 15:44:49 +08:00
Fixed "Plan" appearing as server name on session accordion
This commit is contained in:
parent
272defb205
commit
1bded295e2
@ -58,6 +58,7 @@ public class SessionQueries {
|
||||
"u." + UsersTable.USER_NAME + " as name," +
|
||||
"u_info." + UserInfoTable.REGISTERED + " as registered," +
|
||||
"server." + ServerTable.NAME + " as server_name," +
|
||||
"server." + ServerTable.SERVER_ID + " as server_id," +
|
||||
SessionsTable.SESSION_START + ',' +
|
||||
SessionsTable.SESSION_END + ',' +
|
||||
SessionsTable.MOB_KILLS + ',' +
|
||||
@ -218,7 +219,11 @@ public class SessionQueries {
|
||||
if (!existingPlayerKills.isPresent()) extraData.put(PlayerKills.class, playerKills);
|
||||
|
||||
extraData.put(PlayerName.class, new PlayerName(set.getString("name")));
|
||||
extraData.put(ServerName.class, new ServerName(set.getString("server_name")));
|
||||
extraData.put(ServerName.class, new ServerName(
|
||||
Server.getIdentifiableName(
|
||||
set.getString("server_name"),
|
||||
set.getInt("server_id")
|
||||
)));
|
||||
|
||||
session.setAsFirstSessionIfMatches(set.getLong("registered"));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user