fix webhook validation and change readme
This commit is contained in:
@@ -24,7 +24,7 @@ public class ServerLoad implements Listener {
|
||||
Bukkit.getConsoleSender().sendMessage("Triggered ServerLoad event.");
|
||||
if (timesCalled < 1) {
|
||||
Bukkit.getConsoleSender().sendMessage("Checking if server is up on " + ServerUtils.address + " with port " + ServerUtils.port + "...");
|
||||
if (ServerUtils.serverIsUp(address, 25565)) {
|
||||
if (ServerUtils.serverIsUp(address, Bukkit.getServer().getPort())) {
|
||||
System.out.println(ServerUtils.webhook_messages);
|
||||
System.out.println(ServerUtils.webhook_notify);
|
||||
DiscordWebhook notify = new DiscordWebhook(Main.getNotifyWebhook());
|
||||
|
||||
Reference in New Issue
Block a user