Remove System.out prints (2)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user