Shift internal server check earlier

This commit is contained in:
Mike Primm 2020-12-31 16:50:48 -06:00
parent 95a91d2a89
commit 3344b007c6

View File

@ -394,6 +394,9 @@ public class DynmapCore implements DynmapCommonAPI {
configuration = new ConfigurationNode(f);
configuration.load();
// Check if we are disabling the internal web server (implies external)
isInternalWebServerDisabled = configuration.getBoolean("disable-webserver", false);
/* Prime the tiles directory */
tilesDirectory = getFile(configuration.getString("tilespath", "web/tiles"));
if (!tilesDirectory.isDirectory() && !tilesDirectory.mkdirs()) {
@ -531,8 +534,6 @@ public class DynmapCore implements DynmapCommonAPI {
updateplayerlimit = configuration.getInteger("updateplayerlimit", 0);
/* Load sort permission nodes */
sortPermissionNodes = configuration.getStrings("player-sort-permission-nodes", null);
// Check if we are disabling the internal web server (implies external)
isInternalWebServerDisabled = configuration.getBoolean("disable-webserver", false);
perTickLimit = configuration.getInteger("per-tick-time-limit", 50);
if (perTickLimit < 5) perTickLimit = 5;