From cbe8fda1df36c95cdf71723bf180baba254dab34 Mon Sep 17 00:00:00 2001 From: NotMyFault Date: Mon, 20 Apr 2020 23:24:28 +0200 Subject: [PATCH] Fix update notification --- .../com/plotsquared/bukkit/listener/PlayerEvents.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java index 732c2fe7f..48cba40ca 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/listener/PlayerEvents.java @@ -660,7 +660,7 @@ public class PlayerEvents extends PlotListener implements Listener { && Settings.Enabled_Components.UPDATE_NOTIFICATIONS) { try { HttpsURLConnection connection = (HttpsURLConnection) new URL( - "https://api.spigotmc.org/legacy/update.php?resource=1177").openConnection(); + "https://api.spigotmc.org/legacy/update.php?resource=77506").openConnection(); connection.setRequestMethod("GET"); spigotVersion = (new BufferedReader(new InputStreamReader(connection.getInputStream()))) @@ -677,11 +677,11 @@ public class PlayerEvents extends PlotListener implements Listener { if (!UpdateUtility.internalVersion.equals(UpdateUtility.spigotVersion)) { new PlotMessage("-----------------------------------").send(pp); new PlotMessage(Captions.PREFIX + "There appears to be a PlotSquared update available!") - .color("$1").tooltip("https://www.spigotmc.org/resources/1177/updates").send(pp); - new PlotMessage(Captions.PREFIX + "The latest version is " + spigotVersion).color("$1").tooltip("https://www.spigotmc.org/resources/1177/updates") + .color("$1").tooltip("https://www.spigotmc.org/resources/77506/updates").send(pp); + new PlotMessage(Captions.PREFIX + "The latest version is " + spigotVersion).color("$1").tooltip("https://www.spigotmc.org/resources/77506/updates") .send(pp); - new PlotMessage(Captions.PREFIX + "https://www.spigotmc.org/resources/1177/updates") - .color("$1").tooltip("https://www.spigotmc.org/resources/1177/updates").send(pp); + new PlotMessage(Captions.PREFIX + "https://www.spigotmc.org/resources/77506/updates") + .color("$1").tooltip("https://www.spigotmc.org/resources/77506/updates").send(pp); new PlotMessage("-----------------------------------").send(pp); } } catch (final Exception e) {