help menu
This commit is contained in:
@@ -47,7 +47,15 @@ public class Client {
|
|||||||
SendJoinRoom(roomName);
|
SendJoinRoom(roomName);
|
||||||
} else if(message.startsWith("/leaveRoom")) {
|
} else if(message.startsWith("/leaveRoom")) {
|
||||||
SendLeaveRoom();
|
SendLeaveRoom();
|
||||||
} else {
|
} else if(message.startsWith("/help")) {
|
||||||
|
System.out.println("Available commands:");
|
||||||
|
System.out.println("\t/createRoom <roomName>");
|
||||||
|
System.out.println("\t/listRooms");
|
||||||
|
System.out.println("\t/joinRoom <roomName>");
|
||||||
|
System.out.println("\t/leaveRoom");
|
||||||
|
System.out.println("\t/help");
|
||||||
|
}
|
||||||
|
else {
|
||||||
System.out.println("Unknown command");
|
System.out.println("Unknown command");
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user