diff --git a/.idea/compiler.xml b/.idea/compiler.xml index a1a333a..9ec1460 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -8,6 +8,7 @@ + diff --git a/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar b/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar index 31d644d..4d87767 100644 Binary files a/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar and b/out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar differ diff --git a/pom.xml b/pom.xml index e3e9d1f..85b32c1 100644 --- a/pom.xml +++ b/pom.xml @@ -7,10 +7,7 @@ tech.nully EaglerPluginUpdater 1.0.9 - - untitled - - pom + jar 1.8 diff --git a/src/main/java/tech/nully/PluginUpdater/Updater.java b/src/main/java/tech/nully/PluginUpdater/Updater.java index 8924946..c2216c2 100644 --- a/src/main/java/tech/nully/PluginUpdater/Updater.java +++ b/src/main/java/tech/nully/PluginUpdater/Updater.java @@ -11,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/tree/main/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar") + 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() + "/PluginInstaller.jar"); + 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()); diff --git a/target/EaglerPluginUpdater-1.0.9.jar b/target/EaglerPluginUpdater-1.0.9.jar new file mode 100644 index 0000000..0f7a795 Binary files /dev/null and b/target/EaglerPluginUpdater-1.0.9.jar differ diff --git a/target/classes/plugin.yml b/target/classes/plugin.yml new file mode 100644 index 0000000..63520d2 --- /dev/null +++ b/target/classes/plugin.yml @@ -0,0 +1,12 @@ +name: EaglerPluginUpdater +version: 1.0.9 +main: tech.nully.PluginUpdater.Main +prefix: [PluginUpdater] +authors: [BongoCat] +depend: [EaglerPluginInstaller] +description: A plugin that is capable of installing the latest compatible version of plugins with eaglercraft +website: nully.tech +commands: + update: + description: Update the PluginInstaller plugin + usage: / \ No newline at end of file diff --git a/target/classes/tech/nully/PluginUpdater/Main.class b/target/classes/tech/nully/PluginUpdater/Main.class index df07689..3581182 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 0b55945..5b3fe09 100644 Binary files a/target/classes/tech/nully/PluginUpdater/Updater.class and b/target/classes/tech/nully/PluginUpdater/Updater.class differ diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties new file mode 100644 index 0000000..41a4d63 --- /dev/null +++ b/target/maven-archiver/pom.properties @@ -0,0 +1,5 @@ +#Generated by Maven +#Wed Jun 08 12:20:57 PDT 2022 +groupId=tech.nully +artifactId=EaglerPluginUpdater +version=1.0.9 diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst new file mode 100644 index 0000000..831de86 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/createdFiles.lst @@ -0,0 +1,2 @@ +tech\nully\PluginUpdater\Main.class +tech\nully\PluginUpdater\Updater.class diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst new file mode 100644 index 0000000..5b6c3f9 --- /dev/null +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -0,0 +1,2 @@ +C:\Users\PC\Documents\PluginInstaller\src\main\java\tech\nully\PluginUpdater\Updater.java +C:\Users\PC\Documents\PluginInstaller\src\main\java\tech\nully\PluginUpdater\Main.java diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst new file mode 100644 index 0000000..e69de29