Several small adjustments. Nothing major, pushing so i can continue coding on other PC

This commit is contained in:
Jonas committed 2022-04-12 20:04:23 +02:00
1 parent 920ea3fba9
commit 8aad32bd2d
2 files changed
+12

No files matched your search

@@ -65,6 +65,13 @@ public class MessageFormatter {
stringBuilder.append(Protocol.listLobbies + "$");
s = ""; //Command has no parameters
break;
case "/j":
stringBuilder.append(Protocol.joinLobby + "$");
try {
s = msg.substring(3);
} catch (Exception ignored) {
}
break;
default:
s = msg;
}
@@ -113,6 +113,11 @@ public class Protocol {
*/
public static final String leaveLobby = "LEAVL";
/**
* Whisper chat
*/
public static final String whisper ="WHISP";
//SERVER TO CLIENT COMMANDS