Skip to content

Commit 5e88ede

Browse files
committed
Update Updater.java
1 parent bfb6b24 commit 5e88ede

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/main/java/tk/fungy/wsformc/Updater.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121
public class Updater implements Listener {
2222
private static String currentVersion = Main.getInstance().getDescription().getVersion();
2323
public static String latestVersion;
24+
private static String user = "CodeITForFun";
25+
private static String repo = "WSForMC";
2426
public static void startUpdater() {
2527
Bukkit.getScheduler().runTaskTimerAsynchronously(Main.instance, new Runnable() {
2628
@Override
@@ -31,7 +33,7 @@ public void run() {
3133
}
3234
private static void checkForUpdates() {
3335
try {
34-
URL url = new URL("https://api.github.com/repos/CodeITForFun/WSForMC/releases"); // Replace with the URL to your GitHub releases
36+
URL url = new URL("https://api.github.com/repos/"+ user + "/" + repo + "/releases"); // Replace with the URL to your GitHub releases
3537
BufferedReader reader = new BufferedReader(new InputStreamReader(url.openStream()));
3638
StringBuilder result = new StringBuilder();
3739
String line;

0 commit comments

Comments
 (0)