Cleanup
This commit is contained in:
parent
fdb02a6428
commit
f4e048a5df
@ -56,7 +56,7 @@ public class Server {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getType() {
|
private String getType() {
|
||||||
return this.type.getName() + this.serverVersion + ".jar";
|
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.
|
* @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;
|
AdvancedServerType type;
|
||||||
File file = new File(this.path + "\\" + this.getType());
|
File file = new File(this.path + "\\" + this.getType());
|
||||||
Path filePath = Paths.get(this.path + "\\" + this.getType());
|
Path filePath = Paths.get(this.path + "\\" + this.getType());
|
||||||
|
@ -11,8 +11,6 @@ import java.util.ArrayList;
|
|||||||
* @since 0.0.0.1
|
* @since 0.0.0.1
|
||||||
*/
|
*/
|
||||||
public class ServerTest {
|
public class ServerTest {
|
||||||
private static ArrayList<Server> servers = new ArrayList<>();
|
|
||||||
|
|
||||||
public static void main(String[] args) {
|
public static void main(String[] args) {
|
||||||
try {
|
try {
|
||||||
ServerType.loadServerTypes();
|
ServerType.loadServerTypes();
|
||||||
@ -27,9 +25,6 @@ public class ServerTest {
|
|||||||
server1.setType(ServerType.getServerTypes().get(6));
|
server1.setType(ServerType.getServerTypes().get(6));
|
||||||
server1.setServerVersion("1.6.4");
|
server1.setServerVersion("1.6.4");
|
||||||
server1.setMaxRam("1G");
|
server1.setMaxRam("1G");
|
||||||
servers.add(server1);
|
|
||||||
Server.startServers();
|
Server.startServers();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user