diff --git a/src/com/loohp/limbo/Limbo.java b/src/com/loohp/limbo/Limbo.java index 23ef653..e17fd44 100644 --- a/src/com/loohp/limbo/Limbo.java +++ b/src/com/loohp/limbo/Limbo.java @@ -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); @@ -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)); }