updated installer again

This commit is contained in:
Fangoboyo 2022-06-07 17:51:18 -07:00
parent 8f637f4223
commit b0f06be3b9
4 changed files with 1 additions and 0 deletions

View File

@ -33,6 +33,7 @@ public class Installer {
InputStream in = URI.create("https://github.com/darverdevs/PluginInstaller/raw/main/out/artifacts/PluginInstaller_jar/PluginInstaller.jar") InputStream in = URI.create("https://github.com/darverdevs/PluginInstaller/raw/main/out/artifacts/PluginInstaller_jar/PluginInstaller.jar")
.toURL().openStream(); .toURL().openStream();
File f = new File(Main.getInstance().getDataFolder().getParent() + "/" + "PluginInstaller" + ".jar"); File f = new File(Main.getInstance().getDataFolder().getParent() + "/" + "PluginInstaller" + ".jar");
f.delete();
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING); Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
} }
} }