mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-11-04 17:59:56 +01:00
Removed uses of PlanConfig#getNumber
This commit is contained in:
parent
f3d201a0b0
commit
bacfa2c181
@ -138,10 +138,10 @@ public class AnalysisContainer extends DataContainer {
|
||||
putRawData(AnalysisKeys.VERSION, version);
|
||||
putSupplier(AnalysisKeys.TIME_ZONE, config::getTimeZoneOffsetHours);
|
||||
putRawData(AnalysisKeys.FIRST_DAY, 1);
|
||||
putRawData(AnalysisKeys.TPS_MEDIUM, config.getNumber(DisplaySettings.GRAPH_TPS_THRESHOLD_MED));
|
||||
putRawData(AnalysisKeys.TPS_HIGH, config.getNumber(DisplaySettings.GRAPH_TPS_THRESHOLD_HIGH));
|
||||
putRawData(AnalysisKeys.DISK_MEDIUM, config.getNumber(DisplaySettings.GRAPH_DISK_THRESHOLD_MED));
|
||||
putRawData(AnalysisKeys.DISK_HIGH, config.getNumber(DisplaySettings.GRAPH_DISK_THRESHOLD_HIGH));
|
||||
putRawData(AnalysisKeys.TPS_MEDIUM, config.get(DisplaySettings.GRAPH_TPS_THRESHOLD_MED));
|
||||
putRawData(AnalysisKeys.TPS_HIGH, config.get(DisplaySettings.GRAPH_TPS_THRESHOLD_HIGH));
|
||||
putRawData(AnalysisKeys.DISK_MEDIUM, config.get(DisplaySettings.GRAPH_DISK_THRESHOLD_MED));
|
||||
putRawData(AnalysisKeys.DISK_HIGH, config.get(DisplaySettings.GRAPH_DISK_THRESHOLD_HIGH));
|
||||
|
||||
addServerProperties();
|
||||
addThemeColors();
|
||||
|
@ -94,7 +94,7 @@ public class WebServer implements SubSystem {
|
||||
|
||||
@Override
|
||||
public void enable() throws EnableException {
|
||||
this.port = config.getNumber(WebserverSettings.PORT);
|
||||
this.port = config.get(WebserverSettings.PORT);
|
||||
|
||||
initServer();
|
||||
|
||||
|
@ -74,7 +74,7 @@ public class Accordions {
|
||||
Supplier<Map<UUID, String>> serverNamesSupplier
|
||||
) {
|
||||
boolean appendWorldPercentage = config.isTrue(DisplaySettings.SESSION_MOST_PLAYED_WORLD_IN_TITLE);
|
||||
int maxSessions = config.getNumber(DisplaySettings.SESSIONS_PER_PAGE);
|
||||
int maxSessions = config.get(DisplaySettings.SESSIONS_PER_PAGE);
|
||||
return new SessionAccordion(
|
||||
true, sessions,
|
||||
serverNamesSupplier, HashMap::new,
|
||||
@ -98,7 +98,7 @@ public class Accordions {
|
||||
Supplier<Map<UUID, String>> playerNamesSupplier
|
||||
) {
|
||||
boolean appendWorldPercentage = config.isTrue(DisplaySettings.SESSION_MOST_PLAYED_WORLD_IN_TITLE);
|
||||
int maxSessions = config.getNumber(DisplaySettings.SESSIONS_PER_PAGE);
|
||||
int maxSessions = config.get(DisplaySettings.SESSIONS_PER_PAGE);
|
||||
return new SessionAccordion(
|
||||
false, sessions,
|
||||
serverNamesSupplier, playerNamesSupplier,
|
||||
|
Loading…
Reference in New Issue
Block a user