Finally fix default port displaying and added better Jenkins messages

This commit is contained in:
rtm516 2020-10-25 14:38:40 +00:00
commit 45769d6e75
No known key found for this signature in database
GPG key ID: 331715B8B007C67A
3 changed files with 35 additions and 18 deletions

View file

@ -35,13 +35,13 @@ import lombok.NoArgsConstructor;
public class Server {
private String address;
private int port = 25565;
private int port = -1;
private boolean online = true;
private boolean bedrock = false;
private String name = null;
public Server(String address) {
this(address, 25565);
this(address, -1);
}
public Server(String address, int port) {
@ -62,6 +62,6 @@ public class Server {
@Override
public String toString() {
return name != null ? name : address + (port != defaultPort() ? ":" + port : "");
return name != null ? name : address + (getPort() != defaultPort() ? ":" + getPort() : "");
}
}