Fail fast bukkit initializing
This commit is contained in:
parent
1d50a98b14
commit
249515291b
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user