mirror of
https://github.com/darverdevs/EaglerPluginUpdater.git
synced 2024-11-24 12:06:05 -08:00
recompiled to fix some bugs
This commit is contained in:
parent
9868c71503
commit
62c0ef543f
Binary file not shown.
|
@ -1,4 +1,4 @@
|
|||
package tech.nully.PluginInstaller;
|
||||
package tech.nully.PluginUpdater;
|
||||
|
||||
import org.bukkit.ChatColor;
|
||||
import org.bukkit.plugin.Plugin;
|
|
@ -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.
Binary file not shown.
BIN
target/classes/tech/nully/PluginUpdater/Updater.class
Normal file
BIN
target/classes/tech/nully/PluginUpdater/Updater.class
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user