From 558df450b5e756c97560386765427da5850d7b2a Mon Sep 17 00:00:00 2001 From: N0tMyFaultOG Date: Mon, 20 Apr 2020 21:04:30 +0200 Subject: [PATCH] Update spigot updater --- .../main/java/com/plotsquared/bukkit/util/UpdateUtility.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/plotsquared/bukkit/util/UpdateUtility.java b/Bukkit/src/main/java/com/plotsquared/bukkit/util/UpdateUtility.java index bc11af3f5..3378776a5 100644 --- a/Bukkit/src/main/java/com/plotsquared/bukkit/util/UpdateUtility.java +++ b/Bukkit/src/main/java/com/plotsquared/bukkit/util/UpdateUtility.java @@ -56,7 +56,7 @@ public class UpdateUtility implements Listener { Bukkit.getScheduler().runTaskAsynchronously(UpdateUtility.this.javaPlugin, () -> { if (Settings.Enabled_Components.UPDATE_NOTIFICATIONS) { try { - HttpsURLConnection connection = (HttpsURLConnection) new URL("https://api.spigotmc.org/legacy/update.php?resource=1177").openConnection(); + HttpsURLConnection connection = (HttpsURLConnection) new URL("https://api.spigotmc.org/legacy/update.php?resource=77506").openConnection(); connection.setRequestMethod("GET"); spigotVersion = (new BufferedReader(new InputStreamReader(connection.getInputStream()))).readLine(); } catch (IOException e) { @@ -69,7 +69,7 @@ public class UpdateUtility implements Listener { if (!internalVersion.equals(spigotVersion)) { PlotSquared.log(Captions.PREFIX + "&6There appears to be a PlotSquared update available!"); PlotSquared.log(Captions.PREFIX + "&6You are running version " + internalVersion + ", &6latest version is " + spigotVersion); - PlotSquared.log(Captions.PREFIX + "&6https://www.spigotmc.org/resources/1177/updates"); + PlotSquared.log(Captions.PREFIX + "&6https://www.spigotmc.org/resources/77506/updates"); } else { PlotSquared.log(Captions.PREFIX + "Congratulations! You are running the latest PlotSquared version."); }