Skip to content

Commit

Permalink
v2.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJeterLP committed Oct 2, 2022
2 parents 0a7e09d + 97c877e commit 086f231
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>de.jeter</groupId>
<artifactId>Spigot-Updatechecker</artifactId>
<version>2.0.2</version>
<version>2.0.3</version>
<packaging>jar</packaging>

<properties>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand All @@ -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
Expand Down

0 comments on commit 086f231

Please sign in to comment.