mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2024-10-16 07:16:03 +02:00
Fix empty address warning
This commit is contained in:
parent
22a5348e33
commit
5bad66bda0
@ -152,7 +152,7 @@ public class WebServer implements SubSystem {
|
|||||||
|
|
||||||
logger.info(locale.getString(PluginLang.ENABLED_WEB_SERVER, server.getAddress().getPort(), getAccessAddress()));
|
logger.info(locale.getString(PluginLang.ENABLED_WEB_SERVER, server.getAddress().getPort(), getAccessAddress()));
|
||||||
boolean usingAlternativeIP = config.isTrue(WebserverSettings.SHOW_ALTERNATIVE_IP);
|
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));
|
logger.log(L.INFO_COLOR, "§e" + locale.getString(PluginLang.ENABLE_NOTIFY_EMPTY_IP));
|
||||||
}
|
}
|
||||||
} catch (IllegalArgumentException | IllegalStateException | IOException e) {
|
} catch (IllegalArgumentException | IllegalStateException | IOException e) {
|
||||||
|
Loading…
Reference in New Issue
Block a user