mirror of
https://github.com/darverdevs/EaglerPluginUpdater.git
synced 2024-12-21 14:54:12 -08:00
Chnaged the link path of EaglerPluginInstaller
This commit is contained in:
parent
64557cbb9d
commit
802b7809dd
|
@ -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>
|
4
pom.xml
4
pom.xml
|
@ -30,8 +30,8 @@
|
|||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.github.EaglerMaven</groupId>
|
||||
<artifactId>PluginInstaller</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<artifactId>EaglerPluginInstaller</artifactId>
|
||||
<version>1.0.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.github.EaglerMaven</groupId>
|
||||
|
|
|
@ -1,20 +1,20 @@
|
|||
package tech.nully.PluginUpdater;
|
||||
|
||||
import org.bukkit.plugin.Plugin;
|
||||
|
||||
import java.io.File;
|
||||
import java.io.IOException;
|
||||
import java.io.InputStream;
|
||||
import java.net.URI;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.StandardCopyOption;
|
||||
import tech.nully.PluginInstaller.Main;
|
||||
|
||||
import static org.bukkit.Bukkit.getServer;
|
||||
|
||||
import org.bukkit.plugin.Plugin;
|
||||
import tech.nully.PluginInstaller.Main;
|
||||
|
||||
public class Updater {
|
||||
public static void UpdateInstaller() throws IOException {
|
||||
InputStream in = URI.create("https://github.com/darverdevs/PluginInstaller/raw/main/out/artifacts/EaglerPluginInstaller_jar/EaglerPluginInstaller.jar")
|
||||
InputStream in = URI.create("https://github.com/darverdevs/PluginInstaller/raw/main/target/EaglerPluginInstaller-1.1.5.jar")
|
||||
.toURL().openStream();
|
||||
File f = new File(Main.getInstance().getDataFolder().getParent() + "/EaglerPluginInstaller.jar");
|
||||
Files.copy(in, f.toPath(), StandardCopyOption.REPLACE_EXISTING);
|
||||
|
|
BIN
target/EaglerPluginUpdater-1.0.9.jar
Normal file
BIN
target/EaglerPluginUpdater-1.0.9.jar
Normal file
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
|
||||
#Sat Aug 06 13:52:34 PDT 2022
|
||||
version=1.0.9
|
||||
groupId=tech.nully
|
||||
artifactId=EaglerPluginUpdater
|
|
@ -0,0 +1,2 @@
|
|||
/home/bongle/GitHub/EaglerPluginUpdater/src/main/java/tech/nully/PluginUpdater/Main.java
|
||||
/home/bongle/GitHub/EaglerPluginUpdater/src/main/java/tech/nully/PluginUpdater/Updater.java
|
Loading…
Reference in New Issue
Block a user