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
+1 -1
View File
@@ -23,7 +23,7 @@ import java.util.Date;
import java.util.Objects; import java.util.Objects;
public class Main extends JavaPlugin { public class Main extends JavaPlugin {
private static Main mainSmall; public static Main mainSmall;
private static boolean webhooksAreValidUrls; private static boolean webhooksAreValidUrls;
public static boolean hdc; public static boolean hdc;
public static File config; public static File config;
+2 -1
View File
@@ -5,6 +5,7 @@ import org.bukkit.Server;
import java.net.InetSocketAddress; import java.net.InetSocketAddress;
import java.net.Socket; import java.net.Socket;
import moe.sob.Main;
public class ServerUtils { public class ServerUtils {
public static int port = 25565; 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() + ")"); Bukkit.getConsoleSender().sendMessage("Server is online. Test notifying by sending a message to your webhook... (Pinged " + serverAddress + ":" + server.getPort() + ")");
return true; return true;
} catch (Exception e) { } catch (Exception e) {
System.out.println("Server is inactive. Pinging fallback address..."); Main.mainSmall.getLogger().warning("Server is inactive. Pinging fallback address...");
try { try {
Server server = Bukkit.getServer(); Server server = Bukkit.getServer();
Socket s = new Socket(); Socket s = new Socket();