diff --git a/build.gradle b/build.gradle index 7d7f373..ed99c6e 100644 --- a/build.gradle +++ b/build.gradle @@ -4,7 +4,7 @@ plugins { } group 'com.danifoldi' -version '1.2.4' +version '1.2.5' sourceCompatibility = JavaVersion.VERSION_11 repositories { @@ -35,7 +35,7 @@ dependencies { } processResources { - duplicatesStrategy('include') + duplicatesStrategy(DuplicatesStrategy.INCLUDE) from(sourceSets.main.resources) { expand version: project.version } diff --git a/src/main/java/com/danifoldi/bungeegui/main/PlaceholderHandler.java b/src/main/java/com/danifoldi/bungeegui/main/PlaceholderHandler.java index 60611f1..4bd7609 100644 --- a/src/main/java/com/danifoldi/bungeegui/main/PlaceholderHandler.java +++ b/src/main/java/com/danifoldi/bungeegui/main/PlaceholderHandler.java @@ -109,7 +109,7 @@ void registerBuiltins() { refreshData = proxyServer.getScheduler().schedule(plugin, () -> { for (ServerInfo server: proxyServer.getServersCopy().values()) { server.ping((ping, error) -> { - if (lastStatus.containsKey(server) && lastStatus.get(server) == (error == null)) { + if (lastStatus.containsKey(server) && lastStatus.get(server) != (error == null)) { if (error != null) { logger.info("Server " + server.getName() + " no longer available"); } else { @@ -117,7 +117,7 @@ void registerBuiltins() { } } - lastStatus.put(server, error != null); + lastStatus.put(server, error == null); if (error == null) { latestPing.put(server, ping); }