diff --git a/Plan/src/main/java/com/djrapitops/plan/utilities/html/HtmlStructure.java b/Plan/src/main/java/com/djrapitops/plan/utilities/html/HtmlStructure.java index e2b23de56..83f310e37 100644 --- a/Plan/src/main/java/com/djrapitops/plan/utilities/html/HtmlStructure.java +++ b/Plan/src/main/java/com/djrapitops/plan/utilities/html/HtmlStructure.java @@ -6,6 +6,7 @@ package main.java.com.djrapitops.plan.utilities.html; import com.djrapitops.plugin.utilities.Verify; import main.java.com.djrapitops.plan.Plan; +import main.java.com.djrapitops.plan.Settings; import main.java.com.djrapitops.plan.data.Session; import main.java.com.djrapitops.plan.data.additional.AnalysisType; import main.java.com.djrapitops.plan.data.additional.PluginData; @@ -13,6 +14,7 @@ import main.java.com.djrapitops.plan.systems.info.BukkitInformationManager; import main.java.com.djrapitops.plan.utilities.FormatUtils; import main.java.com.djrapitops.plan.utilities.analysis.AnalysisUtils; import main.java.com.djrapitops.plan.utilities.html.structure.SessionTabStructureCreator; +import main.java.com.djrapitops.plan.utilities.html.tables.SessionsTableCreator; import org.apache.commons.lang3.text.StrSubstitutor; import java.io.Serializable; @@ -92,9 +94,15 @@ public class HtmlStructure { } public static String[] createSessionsTabContentInspectPage(Map> sessions, List allSessions, UUID uuid) { - Map>> map = new HashMap<>(); - map.put(uuid, sessions); - return SessionTabStructureCreator.creteStructure(map, allSessions, false); + if (Settings.DISPLAY_SESSIONS_AS_TABLE.isTrue()) { + Map> sessionsByPlayer = new HashMap<>(); + sessionsByPlayer.put(uuid, allSessions); + return SessionsTableCreator.createTable(sessionsByPlayer, allSessions); + } else { + Map>> map = new HashMap<>(); + map.put(uuid, sessions); + return SessionTabStructureCreator.creteStructure(map, allSessions, false); + } } private static String[] getSessionsAsTable(Map> sessions, List allSessions, UUID uuid) {