actually call method when LISTL is recieved.

This commit is contained in:
Sebastian Lenzlinger 2022-04-08 17:24:20 +02:00
parent 6297439c3c
commit 709e5323e8

View File

@ -58,14 +58,13 @@ public class JServerProtocolParser {
h.removeClientOnLogout();
break;
case Protocol.createNewGame:
// TODO add h.openLobby(h) method
h.createNewLobby();
LOGGER.debug(Protocol.createNewGame
+ " command reached in JServerProtocolParser. Command issued by: "
+ h.getClientUserName());
break;
case Protocol.listLobbies:
//TODO: add action
h.listAllLobbiesToClient();
LOGGER.debug(Protocol.listLobbies + " command recieved from: " + h.getClientUserName());
break;
default: