compiled stuff

This commit is contained in:
Fangoboyo 2022-06-08 12:24:57 -07:00
parent 96e5575323
commit 7859323870
12 changed files with 25 additions and 6 deletions

View File

@ -8,6 +8,7 @@
<outputRelativeToContentRoot value="true" /> <outputRelativeToContentRoot value="true" />
<module name="PrimCore" /> <module name="PrimCore" />
<module name="Installer" /> <module name="Installer" />
<module name="EaglerPluginUpdater" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
<bytecodeTargetLevel> <bytecodeTargetLevel>

View File

@ -7,10 +7,7 @@
<groupId>tech.nully</groupId> <groupId>tech.nully</groupId>
<artifactId>EaglerPluginUpdater</artifactId> <artifactId>EaglerPluginUpdater</artifactId>
<version>1.0.9</version> <version>1.0.9</version>
<modules> <packaging>jar</packaging>
<module>untitled</module>
</modules>
<packaging>pom</packaging>
<properties> <properties>
<java.version>1.8</java.version> <java.version>1.8</java.version>

View File

@ -11,9 +11,9 @@ import static org.bukkit.Bukkit.getServer;
public class Updater { public class Updater {
public static void UpdateInstaller() throws IOException { 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(); .toURL().openStream();
File f = new File(Main.getInstance().getDataFolder().getParent() + "/PluginInstaller.jar"); File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
f.delete(); f.delete();
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING); Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
getServer().getPluginManager().disablePlugin(tech.nully.PluginInstaller.Main.getInstance()); getServer().getPluginManager().disablePlugin(tech.nully.PluginInstaller.Main.getInstance());

Binary file not shown.

12
target/classes/plugin.yml Normal file
View File

@ -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: /<command>

View File

@ -0,0 +1,5 @@
#Generated by Maven
#Wed Jun 08 12:20:57 PDT 2022
groupId=tech.nully
artifactId=EaglerPluginUpdater
version=1.0.9

View File

@ -0,0 +1,2 @@
tech\nully\PluginUpdater\Main.class
tech\nully\PluginUpdater\Updater.class

View File

@ -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