mirror of
https://github.com/darverdevs/EaglerPluginUpdater.git
synced 2024-11-27 19:14:21 -08:00
recompile
This commit is contained in:
parent
6fff926ba2
commit
8bca5c05e4
Binary file not shown.
|
@ -8,6 +8,8 @@ import java.nio.file.Files;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
|
|
||||||
import static org.bukkit.Bukkit.getServer;
|
import static org.bukkit.Bukkit.getServer;
|
||||||
|
|
||||||
|
import org.bukkit.plugin.Plugin;
|
||||||
import tech.nully.PluginInstaller.Main;
|
import tech.nully.PluginInstaller.Main;
|
||||||
|
|
||||||
public class Updater {
|
public class Updater {
|
||||||
|
@ -16,7 +18,8 @@ public class Updater {
|
||||||
.toURL().openStream();
|
.toURL().openStream();
|
||||||
File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
|
File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
|
||||||
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||||
getServer().getPluginManager().disablePlugin(Main.getInstance());
|
Plugin instance = Main.getInstance();
|
||||||
getServer().getPluginManager().enablePlugin(Main.getInstance());
|
getServer().getPluginManager().disablePlugin(instance);
|
||||||
|
getServer().getPluginManager().enablePlugin(instance);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user