Several small adjustments. Nothing major, pushing so i can continue coding on other PC
This commit is contained in:
parent
920ea3fba9
commit
8aad32bd2d
@ -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
|
||||
|
||||
Reference in New Issue
Block a user