mirror of
https://github.com/darverdevs/EaglerPluginUpdater.git
synced 2024-11-23 19:46:05 -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 static org.bukkit.Bukkit.getServer;
|
||||
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import tech.nully.PluginInstaller.Main;
|
||||
|
||||
public class Updater {
|
||||
|
@ -16,7 +18,8 @@ public class Updater {
|
|||
.toURL().openStream();
|
||||
File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
|
||||
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
getServer().getPluginManager().disablePlugin(Main.getInstance());
|
||||
getServer().getPluginManager().enablePlugin(Main.getInstance());
|
||||
Plugin instance = Main.getInstance();
|
||||
getServer().getPluginManager().disablePlugin(instance);
|
||||
getServer().getPluginManager().enablePlugin(instance);
|
||||
}
|
||||
}
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user