Removed uses of PlanConfig#getNumber

This commit is contained in:
Rsl1122 2018-12-16 14:34:06 +02:00
parent f3d201a0b0
commit bacfa2c181
3 changed files with 7 additions and 7 deletions

View File

@ -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();

View File

@ -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();

View File

@ -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,