File tree Expand file tree Collapse file tree
src/main/java/tk/fungy/wsformc Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2121public 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 ;
You can’t perform that action at this time.
0 commit comments