mirror of
https://github.com/darverdevs/PluginInstaller.git
synced 2024-11-22 01:06:06 -08:00
fixed compilation issues
This commit is contained in:
parent
99327a56e0
commit
15eb33b917
8
.idea/artifacts/EaglerPluginUpdater_jar.xml
Normal file
8
.idea/artifacts/EaglerPluginUpdater_jar.xml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
<component name="ArtifactManager">
|
||||||
|
<artifact type="jar" name="EaglerPluginUpdater:jar">
|
||||||
|
<output-path>$PROJECT_DIR$/out/artifacts/EaglerPluginUpdater_jar</output-path>
|
||||||
|
<root id="archive" name="EaglerPluginUpdater.jar">
|
||||||
|
<element id="module-output" name="EaglerPluginUpdater" />
|
||||||
|
</root>
|
||||||
|
</artifact>
|
||||||
|
</component>
|
|
@ -1,8 +0,0 @@
|
||||||
<component name="ArtifactManager">
|
|
||||||
<artifact type="jar" name="PluginUpdater:jar">
|
|
||||||
<output-path>$PROJECT_DIR$/out/artifacts/PluginUpdater_jar</output-path>
|
|
||||||
<root id="archive" name="PrimCore.jar">
|
|
||||||
<element id="module-output" name="PrimCore" />
|
|
||||||
</root>
|
|
||||||
</artifact>
|
|
||||||
</component>
|
|
|
@ -8,11 +8,13 @@
|
||||||
<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>
|
||||||
|
<module name="EaglerPluginInstaller" target="1.8" />
|
||||||
<module name="Installer" target="1.8" />
|
<module name="Installer" target="1.8" />
|
||||||
<module name="PluginInstaller" target="1.8" />
|
<module name="PrimCore" target="1.8" />
|
||||||
</bytecodeTargetLevel>
|
</bytecodeTargetLevel>
|
||||||
</component>
|
</component>
|
||||||
</project>
|
</project>
|
12
PrimCore.iml
12
PrimCore.iml
|
@ -1,12 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<module version="4">
|
|
||||||
<component name="FacetManager">
|
|
||||||
<facet type="minecraft" name="Minecraft">
|
|
||||||
<configuration>
|
|
||||||
<autoDetectTypes>
|
|
||||||
<platformType>BUKKIT</platformType>
|
|
||||||
</autoDetectTypes>
|
|
||||||
</configuration>
|
|
||||||
</facet>
|
|
||||||
</component>
|
|
||||||
</module>
|
|
BIN
out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar
Normal file
BIN
out/artifacts/EaglerPluginUpdater_jar/EaglerPluginUpdater.jar
Normal file
Binary file not shown.
Binary file not shown.
8
pom.xml
8
pom.xml
|
@ -5,14 +5,10 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
<groupId>tech.nully</groupId>
|
<groupId>tech.nully</groupId>
|
||||||
<artifactId>EaglerPluginInstaller</artifactId>
|
<artifactId>EaglerPluginUpdater</artifactId>
|
||||||
<version>1.0.0</version>
|
<version>1.0.0</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
|
|
||||||
<name>PluginUpdater</name>
|
|
||||||
|
|
||||||
<description>A plugin made to install other plugins from an online repository to eaglercraft servers with a single command</description>
|
|
||||||
<url>nully.tech</url>
|
|
||||||
<properties>
|
<properties>
|
||||||
<java.version>1.8</java.version>
|
<java.version>1.8</java.version>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
|
@ -39,6 +35,4 @@
|
||||||
<version>1.5.2-R1.0</version>
|
<version>1.5.2-R1.0</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
</project>
|
</project>
|
|
@ -22,8 +22,8 @@ public class Main extends JavaPlugin {
|
||||||
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
||||||
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
||||||
getServer().getConsoleSender().sendMessage(
|
getServer().getConsoleSender().sendMessage(
|
||||||
ChatColor.GREEN + "[EaglerPluginUpdater]" + ChatColor.AQUA + " EaglerPluginInstaller V1.0.8 is now Enabled! :D");
|
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 PluginInstaller on startup");
|
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("--------------------------------------------");
|
||||||
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
getServer().getConsoleSender().sendMessage("--------------------------------------------");
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,6 @@ package tech.nully.PluginUpdater;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
import java.net.MalformedURLException;
|
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.nio.file.Files;
|
import java.nio.file.Files;
|
||||||
import java.nio.file.StandardCopyOption;
|
import java.nio.file.StandardCopyOption;
|
||||||
|
@ -12,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/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();
|
.toURL().openStream();
|
||||||
File f = new File(Main.getInstance().getDataFolder().getParent() + "/" + "PluginInstaller" + ".jar");
|
File f = new File(Main.getInstance().getDataFolder().getParent() + "/PluginInstaller.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.
Binary file not shown.
Loading…
Reference in New Issue
Block a user