Fix empty address warning

This commit is contained in:
Rsl1122 2019-07-24 16:45:06 +03:00
parent 22a5348e33
commit 5bad66bda0

View File

@ -152,7 +152,7 @@ public class WebServer implements SubSystem {
logger.info(locale.getString(PluginLang.ENABLED_WEB_SERVER, server.getAddress().getPort(), getAccessAddress()));
boolean usingAlternativeIP = config.isTrue(WebserverSettings.SHOW_ALTERNATIVE_IP);
if (!usingAlternativeIP && getIP().isEmpty()) {
if (!usingAlternativeIP && serverProperties.getIp().isEmpty()) {
logger.log(L.INFO_COLOR, "§e" + locale.getString(PluginLang.ENABLE_NOTIFY_EMPTY_IP));
}
} catch (IllegalArgumentException | IllegalStateException | IOException e) {