This commit is contained in:
Kristian Knarvik 2018-01-25 21:21:06 +01:00
parent fdb02a6428
commit f4e048a5df
2 changed files with 5 additions and 10 deletions

View File

@ -56,7 +56,7 @@ public class Server {
}
}
public String getType() {
private String getType() {
return this.type.getName() + this.serverVersion + ".jar";
}
@ -138,7 +138,7 @@ public class Server {
*
* @throws FileNotFoundException if the file was not found and could not be acquired.
*/
public void downloadJar() throws FileNotFoundException {
private void downloadJar() throws FileNotFoundException {
AdvancedServerType type;
File file = new File(this.path + "\\" + this.getType());
Path filePath = Paths.get(this.path + "\\" + this.getType());

View File

@ -11,8 +11,6 @@ import java.util.ArrayList;
* @since 0.0.0.1
*/
public class ServerTest {
private static ArrayList<Server> servers = new ArrayList<>();
public static void main(String[] args) {
try {
ServerType.loadServerTypes();
@ -27,9 +25,6 @@ public class ServerTest {
server1.setType(ServerType.getServerTypes().get(6));
server1.setServerVersion("1.6.4");
server1.setMaxRam("1G");
servers.add(server1);
Server.startServers();
}
}