Minecraft-Server-Launcher/ServerType.java

21 lines
393 B
Java

import java.util.ArrayList;
/**
* Has a name and contains a list of valid server versions.
*/
public class ServerType {
private String name;
private String[] versions;
public ServerType(String name, String[] versions) {
this.name = name;
this.versions = versions;
}
public String getName() {
return this.name;
}
public String[] getVersions() {
return this.versions;
}
}