diff --git a/src/serverlauncher/Main.java b/src/Main.java similarity index 94% rename from src/serverlauncher/Main.java rename to src/Main.java index 72a78ce..4b0e24a 100644 --- a/src/serverlauncher/Main.java +++ b/src/Main.java @@ -1,10 +1,15 @@ -import serverlauncher.server.*; +import net.knarcraft.serverlauncher.server.*; import java.io.FileNotFoundException; import java.lang.Runtime; import java.util.ArrayList; import java.io.IOException; //Java 9 required. + +/** + * A software for managing Minecraft servers. + * @author Kristian Knarvik + */ public class Main { private static ArrayList servers = new ArrayList<>(); private static ArrayList serverTypes = new ArrayList<>(); diff --git a/src/serverlauncher/serverlauncher/server/Server.java b/src/net/knarcraft/serverlauncher/server/Server.java similarity index 95% rename from src/serverlauncher/serverlauncher/server/Server.java rename to src/net/knarcraft/serverlauncher/server/Server.java index 8c11ca9..f4eb529 100644 --- a/src/serverlauncher/serverlauncher/server/Server.java +++ b/src/net/knarcraft/serverlauncher/server/Server.java @@ -1,4 +1,4 @@ -package serverlauncher.server; +package net.knarcraft.serverlauncher.server; import java.io.File; import java.net.URL; @@ -9,7 +9,7 @@ import java.nio.file.StandardCopyOption; import java.nio.file.*; import java.util.ArrayList; import java.io.FileNotFoundException; -//Contains all necessary information to create, run and manage a Minecraft server. +/* Contains all necessary information to create, run and manage a Minecraft server. */ public class Server { private final String BASEURL = "https://knarcraft.net/Api/Download/bungeeminecraftserverlauncher/jars"; //The url we download jar files from. private final String BUKKITURL = BASEURL + "/Bukkit/"; @@ -20,7 +20,7 @@ public class Server { private String path; private boolean enabled; private ArrayList playerList; - private serverlauncher.server.ServerType type; + private ServerType type; private String serverVersion; private String maxRam; private long pid; diff --git a/src/serverlauncher/serverlauncher/server/ServerType.java b/src/net/knarcraft/serverlauncher/server/ServerType.java similarity index 68% rename from src/serverlauncher/serverlauncher/server/ServerType.java rename to src/net/knarcraft/serverlauncher/server/ServerType.java index ffc6538..71e2264 100644 --- a/src/serverlauncher/serverlauncher/server/ServerType.java +++ b/src/net/knarcraft/serverlauncher/server/ServerType.java @@ -1,12 +1,17 @@ -package serverlauncher.server; +package net.knarcraft.serverlauncher.server; + +import java.net.URL; -import java.util.ArrayList; /** * Has a name and contains a list of valid server versions. */ public class ServerType { private String name; private String[] versions; + private URL versionURL; + private URL downloadURL; + private String srcStart; + private String srcEnd; public ServerType(String name, String[] versions) { this.name = name;