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(); h.removeClientOnLogout();
break; break;
case Protocol.createNewGame: case Protocol.createNewGame:
// TODO add h.openLobby(h) method
h.createNewLobby(); h.createNewLobby();
LOGGER.debug(Protocol.createNewGame LOGGER.debug(Protocol.createNewGame
+ " command reached in JServerProtocolParser. Command issued by: " + " command reached in JServerProtocolParser. Command issued by: "
+ h.getClientUserName()); + h.getClientUserName());
break; break;
case Protocol.listLobbies: case Protocol.listLobbies:
//TODO: add action h.listAllLobbiesToClient();
LOGGER.debug(Protocol.listLobbies + " command recieved from: " + h.getClientUserName()); LOGGER.debug(Protocol.listLobbies + " command recieved from: " + h.getClientUserName());
break; break;
default: default: