LateMain class
Пакет: com.hypixel.hytale
Файл: com/hypixel/hytale/LateMain.java
Поля (3)
| Модификаторы | Тип | Имя |
|---|---|---|
|
Level |
var3 |
|
HytaleServer |
var4 |
|
HytaleServerConfig |
var5 |
Методы (6)
| Модификаторы | Возврат | Сигнатура |
|---|---|---|
abstract |
new |
HytaleServernew HytaleServer() |
abstract |
throw new |
RuntimeExceptionthrow new RuntimeException("Failed to create HytaleServer", var2) |
|
|
if if(var4 != null) |
|
|
if if(var5 != null) |
|
|
if if(var3 != null) |
static |
void |
lateMainvoid lateMain(String[] var0) |
Исходный код
Показать/скрыть
class="kw">package com.hypixel.hytale;
class="kw">import com.hypixel.hytale.logger.HytaleLogger;
class="kw">import com.hypixel.hytale.logger.backend.HytaleFileHandler;
class="kw">import com.hypixel.hytale.logger.backend.HytaleLoggerBackend;
class="kw">import com.hypixel.hytale.logger.sentry.SkipSentryException;
class="kw">import com.hypixel.hytale.server.core.HytaleServer;
class="kw">import com.hypixel.hytale.server.core.HytaleServerConfig;
class="kw">import com.hypixel.hytale.server.core.Options;
class="kw">import com.hypixel.hytale.server.core.console.ConsoleModule;
class="kw">import io.sentry.Sentry;
class="kw">import java.util.Map.Entry;
class="kw">import java.util.logging.Level;
class="kw">public class LateMain {
class="kw">public LateMain() {
}
class="kw">public class="kw">static void lateMain(String[] var0) {
try {
if (!Options.parse(var0)) {
HytaleLogger.init();
ConsoleModule.initializeTerminal();
if (!Options.isBare()) {
HytaleFileHandler.INSTANCE.enable();
}
HytaleLogger.replaceStd();
HytaleLoggerBackend.LOG_LEVEL_LOADER = var0x -> {
for (Entry var2 : Options.getOptionSet().valuesOf(Options.LOG_LEVELS)) {
if (var0x.equals(var2.getKey())) {
class="kw">return var2.getValue();
}
}
HytaleServer var4 = HytaleServer.get();
if (var4 != null) {
HytaleServerConfig var5 = var4.getConfig();
if (var5 != null) {
Level var3 = var5.getLogLevels().get(var0x);
if (var3 != null) {
class="kw">return var3;
}
}
}
class="kw">return Options.getOptionSet().has(Options.SHUTDOWN_AFTER_VALIDATE) ? Level.WARNING : null;
};
if (Options.getOptionSet().has(Options.SHUTDOWN_AFTER_VALIDATE)) {
HytaleLoggerBackend.reloadLogLevels();
}
new HytaleServer();
}
} catch (Throwable var2) {
if (!SkipSentryException.hasSkipSentry(var2)) {
Sentry.captureException(var2);
}
var2.printStackTrace();
throw new RuntimeException("Failed to create HytaleServer", var2);
}
}
}