forked from Upstream/CommandPanels
3.17.2.1
This commit is contained in:
parent
e5a79ce937
commit
284a5c7adc
@ -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));
|
||||||
|
Loading…
Reference in New Issue
Block a user