recompiled to fix some bugs

This commit is contained in:
Fangoboyo 2022-06-08 16:33:14 -07:00
parent 9868c71503
commit 62c0ef543f
6 changed files with 2 additions and 3 deletions

View File

@ -1,4 +1,4 @@
package tech.nully.PluginInstaller;
package tech.nully.PluginUpdater;
import org.bukkit.ChatColor;
import org.bukkit.plugin.Plugin;

View File

@ -1,4 +1,4 @@
package tech.nully.PluginInstaller;
package tech.nully.PluginUpdater;
import java.io.File;
import java.io.IOException;
@ -14,7 +14,6 @@ public class Updater {
InputStream in = URI.create("https://github.com/darverdevs/PluginInstaller/raw/main/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar")
.toURL().openStream();
File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
f.delete();
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
getServer().getPluginManager().disablePlugin(tech.nully.PluginInstaller.Main.getInstance());
getServer().getPluginManager().enablePlugin(tech.nully.PluginInstaller.Main.getInstance());

Binary file not shown.