This commit is contained in:
rockyhawk64 2021-11-28 21:23:36 +11:00
parent e5a79ce937
commit 284a5c7adc

View File

@ -140,7 +140,7 @@ public class Updater implements Listener {
try { try {
this.plugin.getLogger().info("Downloading new update: " + "v" + latestVersion); this.plugin.getLogger().info("Downloading new update: " + "v" + latestVersion);
URL fileUrl = new URL("https://github.com/rockyhawk64/CommandPanels/releases/download/" + latestVersion + "/Command.Panels.jar"); URL fileUrl = new URL("https://github.com/rockyhawk64/CommandPanels/releases/download/" + latestVersion + "/CommandPanels.jar");
int fileLength = fileUrl.openConnection().getContentLength(); int fileLength = fileUrl.openConnection().getContentLength();
in = new BufferedInputStream(fileUrl.openStream()); in = new BufferedInputStream(fileUrl.openStream());
fout = new FileOutputStream(new File(new File(".").getAbsolutePath() + "/plugins/", pluginFileName)); fout = new FileOutputStream(new File(new File(".").getAbsolutePath() + "/plugins/", pluginFileName));