Remove System.out prints (2)

This commit is contained in:
2026-01-17 12:45:24 +08:00
parent 23b2a548e9
commit e560b9fc74
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -5,6 +5,7 @@ import org.bukkit.Server;
import java.net.InetSocketAddress;
import java.net.Socket;
import moe.sob.Main;
public class ServerUtils {
public static int port = 25565;
@@ -22,7 +23,7 @@ public class ServerUtils {
Bukkit.getConsoleSender().sendMessage("Server is online. Test notifying by sending a message to your webhook... (Pinged " + serverAddress + ":" + server.getPort() + ")");
return true;
} catch (Exception e) {
System.out.println("Server is inactive. Pinging fallback address...");
Main.mainSmall.getLogger().warning("Server is inactive. Pinging fallback address...");
try {
Server server = Bukkit.getServer();
Socket s = new Socket();