Add warnings for wrong client update component vs web server disabled

This commit is contained in:
Mike Primm 2020-12-31 16:55:52 -06:00
parent 3344b007c6
commit 2b1d0aa955
2 changed files with 8 additions and 0 deletions

View File

@ -22,6 +22,9 @@ public class InternalClientUpdateComponent extends ClientUpdateComponent {
super(dcore, configuration);
dcore.addServlet("/up/world/*", new ClientUpdateServlet(dcore));
if (dcore.isInternalWebServerDisabled) {
Log.severe("Using InternalClientUpdateComponent with disable-webserver=true is not supported: there will likely be problems");
}
jsonInterval = (long)(configuration.getFloat("writeinterval", 1) * 1000);
final Boolean allowwebchat = configuration.getBoolean("allowwebchat", false);
final Boolean hidewebchatip = configuration.getBoolean("hidewebchatip", false);

View File

@ -117,6 +117,11 @@ public class JsonFileClientUpdateComponent extends ClientUpdateComponent {
private static Charset cs_utf8 = Charset.forName("UTF-8");
public JsonFileClientUpdateComponent(final DynmapCore core, final ConfigurationNode configuration) {
super(core, configuration);
if (!core.isInternalWebServerDisabled) {
Log.severe("Using JsonFileClientUpdateComponent with disable-webserver=false is not supported: there will likely be problems");
}
final boolean allowwebchat = configuration.getBoolean("allowwebchat", false);
jsonInterval = (long)(configuration.getFloat("writeinterval", 1) * 1000);
hidewebchatip = configuration.getBoolean("hidewebchatip", false);