Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Commit

Permalink
fix server placeholders
Browse files Browse the repository at this point in the history
  • Loading branch information
DaniFoldi committed Jun 14, 2021
1 parent ef164aa commit d04a52a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
}

group 'com.danifoldi'
version '1.2.4'
version '1.2.5'
sourceCompatibility = JavaVersion.VERSION_11

repositories {
Expand Down Expand Up @@ -35,7 +35,7 @@ dependencies {
}

processResources {
duplicatesStrategy('include')
duplicatesStrategy(DuplicatesStrategy.INCLUDE)
from(sourceSets.main.resources) {
expand version: project.version
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,15 +109,15 @@ 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 {
logger.info("Server " + server.getName() + " now available");
}
}

lastStatus.put(server, error != null);
lastStatus.put(server, error == null);
if (error == null) {
latestPing.put(server, ping);
}
Expand Down

0 comments on commit d04a52a

Please sign in to comment.