mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-08 17:37:34 +01:00
parent
0bb383acd9
commit
97094a9e03
@ -99,6 +99,10 @@ public class WebServer implements SubSystem {
|
|||||||
|
|
||||||
initServer();
|
initServer();
|
||||||
|
|
||||||
|
if (getAccessAddress().contains("0.0.0.0")) {
|
||||||
|
logger.warn(locale.getString(PluginLang.ENABLE_NOTIFY_BAD_IP));
|
||||||
|
}
|
||||||
|
|
||||||
if (!isEnabled()) {
|
if (!isEnabled()) {
|
||||||
if (config.isTrue(WebserverSettings.DISABLED)) {
|
if (config.isTrue(WebserverSettings.DISABLED)) {
|
||||||
logger.warn(locale.getString(PluginLang.ENABLE_NOTIFY_WEB_SERVER_DISABLED));
|
logger.warn(locale.getString(PluginLang.ENABLE_NOTIFY_WEB_SERVER_DISABLED));
|
||||||
|
@ -27,6 +27,7 @@ public enum PluginLang implements Lang {
|
|||||||
ENABLED_DATABASE("Enable - Database", "${0}-database connection established."),
|
ENABLED_DATABASE("Enable - Database", "${0}-database connection established."),
|
||||||
|
|
||||||
ENABLE_NOTIFY_EMPTY_IP("Enable - Notify Empty IP", "IP in server.properties is empty & AlternativeIP is not in use. Incorrect links will be given!"),
|
ENABLE_NOTIFY_EMPTY_IP("Enable - Notify Empty IP", "IP in server.properties is empty & AlternativeIP is not in use. Incorrect links will be given!"),
|
||||||
|
ENABLE_NOTIFY_BAD_IP("Enable - Notify Bad IP", "0.0.0.0 is not a valid address, set up AlternativeIP settings. Incorrect links will be given!"),
|
||||||
ENABLE_NOTIFY_WEB_SERVER_DISABLED("Enable - Notify Webserver disabled", "WebServer was not initialized. (WebServer.DisableWebServer: true)"),
|
ENABLE_NOTIFY_WEB_SERVER_DISABLED("Enable - Notify Webserver disabled", "WebServer was not initialized. (WebServer.DisableWebServer: true)"),
|
||||||
ENABLE_NOTIFY_GEOLOCATIONS_INTERNET_REQUIRED("Enable - Notify Geolocations Internet Required", "Plan Requires internet access on first run to download GeoLite2 Geolocation database."),
|
ENABLE_NOTIFY_GEOLOCATIONS_INTERNET_REQUIRED("Enable - Notify Geolocations Internet Required", "Plan Requires internet access on first run to download GeoLite2 Geolocation database."),
|
||||||
ENABLE_NOTIFY_GEOLOCATIONS_DISABLED("Enable - Notify Geolocations disabled", "Geolocation gathering is not active. (Data.Geolocations: false)"),
|
ENABLE_NOTIFY_GEOLOCATIONS_DISABLED("Enable - Notify Geolocations disabled", "Geolocation gathering is not active. (Data.Geolocations: false)"),
|
||||||
|
Loading…
Reference in New Issue
Block a user