LateMain.java
package com.hypixel.hytale;
import com.hypixel.hytale.logger.HytaleLogger;
import com.hypixel.hytale.logger.backend.HytaleFileHandler;
import com.hypixel.hytale.logger.backend.HytaleLoggerBackend;
import com.hypixel.hytale.logger.sentry.SkipSentryException;
import com.hypixel.hytale.server.core.HytaleServer;
import com.hypixel.hytale.server.core.HytaleServerConfig;
import com.hypixel.hytale.server.core.Options;
import io.sentry.Sentry;
import java.util.Map;
import java.util.logging.Level;
public class LateMain {
public LateMain() {
}
public static void lateMain(String[] args) {
try {
if (!Options.parse(args)) {
HytaleLogger.init();
HytaleFileHandler.INSTANCE.enable();
HytaleLogger.replaceStd();
HytaleLoggerBackend.LOG_LEVEL_LOADER = (name) -> {
for(Map.Entry<String, Level> e : Options.getOptionSet().valuesOf(Options.LOG_LEVELS)) {
if (name.equals(e.getKey())) {
return (Level)e.getValue();
}
}
HytaleServer hytaleServer = HytaleServer.get();
if (hytaleServer != ) {
hytaleServer.getConfig();
(config != ) {
(Level)config.getLogLevels().get(name);
(configLevel != ) {
configLevel;
}
}
}
(Options.getOptionSet().has(Options.SHUTDOWN_AFTER_VALIDATE)) {
Level.WARNING;
} {
;
}
};
(Options.getOptionSet().has(Options.SHUTDOWN_AFTER_VALIDATE)) {
HytaleLoggerBackend.reloadLogLevels();
}
();
}
} (Throwable var2) {
(!SkipSentryException.hasSkipSentry(var2)) {
Sentry.captureException(var2);
}
var2.printStackTrace();
(, var2);
}
}
}