mirror of
https://github.com/darverdevs/PluginInstaller.git
synced 2024-11-22 01:06:06 -08:00
compiled stuff
This commit is contained in:
parent
96e5575323
commit
7859323870
|
@ -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>
|
||||||
|
|
Binary file not shown.
5
pom.xml
5
pom.xml
|
@ -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>
|
||||||
|
|
|
@ -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());
|
||||||
|
|
BIN
target/EaglerPluginUpdater-1.0.9.jar
Normal file
BIN
target/EaglerPluginUpdater-1.0.9.jar
Normal file
Binary file not shown.
12
target/classes/plugin.yml
Normal file
12
target/classes/plugin.yml
Normal 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>
|
Binary file not shown.
Binary file not shown.
5
target/maven-archiver/pom.properties
Normal file
5
target/maven-archiver/pom.properties
Normal 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
|
|
@ -0,0 +1,2 @@
|
||||||
|
tech\nully\PluginUpdater\Main.class
|
||||||
|
tech\nully\PluginUpdater\Updater.class
|
|
@ -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
|
Loading…
Reference in New Issue
Block a user