diff --git a/Adventure/pom.xml b/Adventure/pom.xml index 8ac01c7..e3cc3c4 100644 --- a/Adventure/pom.xml +++ b/Adventure/pom.xml @@ -3,7 +3,7 @@ 4.0.0 Adventure - de.fanta.adventure.Adventure + de.fanta.adventure.Lobby ChallengeSystem diff --git a/Lobby/pom.xml b/Lobby/pom.xml new file mode 100644 index 0000000..6480654 --- /dev/null +++ b/Lobby/pom.xml @@ -0,0 +1,34 @@ + + 4.0.0 + Lobby + + de.fanta.lobby.Lobby + + + ChallengeSystem + de.fanta + 0.0.1-SNAPSHOT + ../pom.xml + + + + de.iani.cubeside + CubesideStatistics + 1.0.0-SNAPSHOT + provided + + + + + + org.apache.maven.plugins + maven-jar-plugin + 3.3.0 + + ${project.artifactId} + + + + + diff --git a/Lobby/src/main/java/de/fanta/lobby/Lobby.java b/Lobby/src/main/java/de/fanta/lobby/Lobby.java new file mode 100644 index 0000000..c767c10 --- /dev/null +++ b/Lobby/src/main/java/de/fanta/lobby/Lobby.java @@ -0,0 +1,36 @@ +package de.fanta.adventure; + +import org.bukkit.plugin.java.JavaPlugin; + +import java.io.File; +import java.util.logging.Logger; + +public final class Lobby extends JavaPlugin { + + private Lobby plugin; + private Logger LOGGER; + + @Override + public void onLoad() { + plugin = this; + LOGGER = getLogger(); + File oldPluginFolder = new File("plugins/Challenges"); + if (oldPluginFolder.isDirectory()) { + if (!oldPluginFolder.renameTo(new File("plugins/Adventure"))) { + LOGGER.severe("Challenges Ordner konnte nicht in Adventure umgenannt werden!"); + plugin.getServer().shutdown(); + } + } + } + + @Override + public void onEnable() { + // Plugin startup logic + + } + + @Override + public void onDisable() { + // Plugin shutdown logic + } +} diff --git a/Lobby/src/main/resources/plugin.yml b/Lobby/src/main/resources/plugin.yml new file mode 100644 index 0000000..064bf9e --- /dev/null +++ b/Lobby/src/main/resources/plugin.yml @@ -0,0 +1,4 @@ +name: Lobby +version: '${project.version}' +main: de.fanta.lobby.Lobby +api-version: '1.20' diff --git a/pom.xml b/pom.xml index f98b054..d526fd2 100644 --- a/pom.xml +++ b/pom.xml @@ -17,6 +17,7 @@ ChallengeCore Challenge Adventure + Lobby