Skip to content

Commit

Permalink
Merge pull request LOOHP#4 from Jan2220/master
Browse files Browse the repository at this point in the history
Accept flag "nogui"
  • Loading branch information
LOOHP authored Dec 3, 2020
2 parents 82e575e + ddd5d02 commit 8d761d5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/com/loohp/limbo/Limbo.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,12 @@ public static void main(String args[]) throws IOException, ParseException, Numbe
for (String flag : args) {
if (flag.equals("--nogui")) {
noGui = true;
} else if (flag.equals("nogui")) {
noGui = true;
} else {
System.out.println("Accepted flags:");
System.out.println(" --nogui ");
System.out.println(" nogui ");
System.out.println();
System.out.println("Press [enter] to quit");
System.exit(0);
Expand Down Expand Up @@ -448,7 +451,7 @@ public String buildServerListResponseJson(String version, int protocol, BaseComp
}

public String buildLegacyPingResponse(String version, BaseComponent[] motd, int maxPlayers, int playersOnline) {
String begin = "§1";
String begin = "§1";
return String.join("\00", begin, "127", version, String.join("", Arrays.asList(motd).stream().map(each -> each.toLegacyText()).collect(Collectors.toList())), String.valueOf(playersOnline), String.valueOf(maxPlayers));
}

Expand Down

0 comments on commit 8d761d5

Please sign in to comment.