Fail fast bukkit initializing

This commit is contained in:
IzzelAliz 2021-12-15 21:36:50 +08:00
parent 1d50a98b14
commit 249515291b
No known key found for this signature in database
GPG Key ID: EE50E123A11D8338

View File

@ -35,7 +35,7 @@ public class ArclightServer {
((MinecraftServerBridge) console).bridge$setConsole(ColouredConsoleSender.getInstance()); ((MinecraftServerBridge) console).bridge$setConsole(ColouredConsoleSender.getInstance());
ArclightPermissionHandler.INSTANCE.initialize(); ArclightPermissionHandler.INSTANCE.initialize();
} catch (Throwable t) { } catch (Throwable t) {
t.printStackTrace(); throw new RuntimeException("Error initializing Arclight", t);
} }
try { try {
ArclightMod.LOGGER.info("registry.begin"); ArclightMod.LOGGER.info("registry.begin");
@ -44,6 +44,7 @@ public class ArclightServer {
org.spigotmc.SpigotConfig.registerCommands(); org.spigotmc.SpigotConfig.registerCommands();
} catch (Throwable t) { } catch (Throwable t) {
ArclightMod.LOGGER.error("registry.error", t); ArclightMod.LOGGER.error("registry.error", t);
throw t;
} }
} else { } else {
((CraftServerBridge) (Object) server).bridge$setPlayerList(playerList); ((CraftServerBridge) (Object) server).bridge$setPlayerList(playerList);