mirror of
https://github.com/webbukkit/dynmap.git
synced 2024-12-24 17:47:40 +01:00
Add warnings for wrong client update component vs web server disabled
This commit is contained in:
parent
3344b007c6
commit
2b1d0aa955
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user