diff --git a/pom.xml b/pom.xml
index f9832fe..8b7fffc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -3,7 +3,7 @@
4.0.0
de.jeter
Spigot-Updatechecker
- 2.0.2
+ 2.0.3
jar
diff --git a/src/main/java/de/jeter/updatechecker/SpigotUpdateChecker.java b/src/main/java/de/jeter/updatechecker/SpigotUpdateChecker.java
index f9860e7..73b375d 100644
--- a/src/main/java/de/jeter/updatechecker/SpigotUpdateChecker.java
+++ b/src/main/java/de/jeter/updatechecker/SpigotUpdateChecker.java
@@ -19,11 +19,13 @@ public class SpigotUpdateChecker extends UpdateChecker {
private static final String VERSIONS = "/versions/latest";
private static final String API_RESOURCE = "https://api.spiget.org/v2/resources/";
private final String USER_AGENT;
+ private final String url;
public SpigotUpdateChecker(JavaPlugin plugin, int id) {
this.plugin = plugin;
this.id = id;
this.USER_AGENT = plugin.getName() + " UpdateChecker";
+ this.url = "https://www.spigotmc.org/resources/" + id + "/updates";
super.init(plugin);
}
@@ -39,7 +41,7 @@ public String getLatestRemoteVersion() {
@Override
public String getUpdateMessage() {
- return "Update found! Please consider installing the latest version from SpigotMC!";
+ return "Update found! Please consider installing the latest version from " + url;
}
@Override