diff --git a/.idea/artifacts/EaglerPluginUpdater_jar.xml b/.idea/artifacts/EaglerPluginUpdater_jar.xml new file mode 100644 index 0000000..f743efd --- /dev/null +++ b/.idea/artifacts/EaglerPluginUpdater_jar.xml @@ -0,0 +1,8 @@ + + + $PROJECT_DIR$/out/artifacts/EaglerPluginUpdater_jar + + + + + \ No newline at end of file diff --git a/.idea/artifacts/PluginUpdater_jar.xml b/.idea/artifacts/PluginUpdater_jar.xml deleted file mode 100644 index 32d72d3..0000000 --- a/.idea/artifacts/PluginUpdater_jar.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - $PROJECT_DIR$/out/artifacts/PluginUpdater_jar - - - - - \ No newline at end of file diff --git a/.idea/compiler.xml b/.idea/compiler.xml index 4715904..69cbc53 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -8,11 +8,13 @@ + + - + \ No newline at end of file diff --git a/PluginInstaller.iml b/EaglerPluginUpdater.iml similarity index 100% rename from PluginInstaller.iml rename to EaglerPluginUpdater.iml diff --git a/PrimCore.iml b/PrimCore.iml deleted file mode 100644 index 4ec1b0e..0000000 --- a/PrimCore.iml +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - - BUKKIT - - - - - \ No newline at end of file diff --git a/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar b/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar new file mode 100644 index 0000000..2a6efb3 Binary files /dev/null and b/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar differ diff --git a/out/artifacts/PluginUpdater_jar/PrimCore.jar b/out/artifacts/PluginUpdater_jar/PrimCore.jar deleted file mode 100644 index 2bd41c0..0000000 Binary files a/out/artifacts/PluginUpdater_jar/PrimCore.jar and /dev/null differ diff --git a/pom.xml b/pom.xml index b5c2737..2ae21ca 100644 --- a/pom.xml +++ b/pom.xml @@ -5,14 +5,10 @@ 4.0.0 tech.nully - EaglerPluginInstaller + EaglerPluginUpdater 1.0.0 jar - PluginUpdater - - A plugin made to install other plugins from an online repository to eaglercraft servers with a single command - nully.tech 1.8 UTF-8 @@ -39,6 +35,4 @@ 1.5.2-R1.0 - - \ No newline at end of file diff --git a/src/main/java/tech/nully/PluginUpdater/Main.java b/src/main/java/tech/nully/PluginUpdater/Main.java index 5f94547..f6cf130 100644 --- a/src/main/java/tech/nully/PluginUpdater/Main.java +++ b/src/main/java/tech/nully/PluginUpdater/Main.java @@ -22,8 +22,8 @@ public class Main extends JavaPlugin { getServer().getConsoleSender().sendMessage("--------------------------------------------"); getServer().getConsoleSender().sendMessage("--------------------------------------------"); getServer().getConsoleSender().sendMessage( - ChatColor.GREEN + "[EaglerPluginUpdater]" + ChatColor.AQUA + " EaglerPluginInstaller V1.0.8 is now Enabled! :D"); - getServer().getConsoleSender().sendMessage("You do not need to do anything, this plugin will automatically update your PluginInstaller on startup"); + ChatColor.GREEN + "[EaglerPluginUpdater]" + ChatColor.AQUA + " EaglerPluginUpdater V1.0.9 is now Enabled! :D"); + getServer().getConsoleSender().sendMessage("You do not need to do anything, this plugin will automatically update your PluginUpdater on startup"); getServer().getConsoleSender().sendMessage("--------------------------------------------"); getServer().getConsoleSender().sendMessage("--------------------------------------------"); } diff --git a/src/main/java/tech/nully/PluginUpdater/Updater.java b/src/main/java/tech/nully/PluginUpdater/Updater.java index 91ec4ba..8924946 100644 --- a/src/main/java/tech/nully/PluginUpdater/Updater.java +++ b/src/main/java/tech/nully/PluginUpdater/Updater.java @@ -3,7 +3,6 @@ package tech.nully.PluginUpdater; import java.io.File; import java.io.IOException; import java.io.InputStream; -import java.net.MalformedURLException; import java.net.URI; import java.nio.file.Files; import java.nio.file.StandardCopyOption; @@ -12,9 +11,9 @@ import static org.bukkit.Bukkit.getServer; public class Updater { public static void UpdateInstaller() throws IOException { - 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/tree/main/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar") .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); getServer().getPluginManager().disablePlugin(tech.nully.PluginInstaller.Main.getInstance()); diff --git a/target/classes/tech/nully/PluginUpdater/Main.class b/target/classes/tech/nully/PluginUpdater/Main.class index 9446235..df07689 100644 Binary files a/target/classes/tech/nully/PluginUpdater/Main.class and b/target/classes/tech/nully/PluginUpdater/Main.class differ diff --git a/target/classes/tech/nully/PluginUpdater/Updater.class b/target/classes/tech/nully/PluginUpdater/Updater.class index d33fa1e..0b55945 100644 Binary files a/target/classes/tech/nully/PluginUpdater/Updater.class and b/target/classes/tech/nully/PluginUpdater/Updater.class differ