Skip to content

Commit f6f4c53

Browse files
committed
fix: disable ping check of online server
1 parent caa34d4 commit f6f4c53

File tree

2 files changed

+2
-7
lines changed

2 files changed

+2
-7
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ plugins {
66
}
77

88
group = 'fr.pickaria'
9-
version = '1.4-SNAPSHOT'
9+
version = '1.4.1'
1010

1111
repositories {
1212
mavenCentral()

src/main/java/fr/pickaria/pterodactylpoweraction/config/YamlConfiguration.java

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
import com.velocitypowered.api.proxy.server.RegisteredServer;
55
import fr.pickaria.pterodactylpoweraction.APIType;
66
import fr.pickaria.pterodactylpoweraction.Configuration;
7-
import fr.pickaria.pterodactylpoweraction.PingUtils;
87
import org.jetbrains.annotations.NotNull;
98
import org.slf4j.Logger;
109
import org.yaml.snakeyaml.Yaml;
@@ -142,11 +141,7 @@ public boolean validateConfig(ProxyServer proxy) {
142141
Optional<RegisteredServer> registeredWaitingServer = proxy.getServer(waitingServerName);
143142

144143
if (registeredWaitingServer.isEmpty()) {
145-
logger.error("Waiting server '{}' is not configured in 'velocity.toml'.", waitingServerName);
146-
isValid = false;
147-
} else if (!PingUtils.isReachable(registeredWaitingServer.get())) {
148-
logger.error("Waiting server '{}' is not reachable.", waitingServerName);
149-
isValid = false;
144+
logger.warn("Waiting server '{}' is not configured in 'velocity.toml'.", waitingServerName);
150145
}
151146

152147
// Warn if waiting server is misconfigured in the plugin's own config

0 commit comments

Comments
 (0)