diff --git a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java index 8799482..56f51e4 100644 --- a/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java +++ b/Server/src/main/java/uulm/teamname/marvelous/server/lobbymanager/LobbyManager.java @@ -139,13 +139,19 @@ public class LobbyManager { * @return true if handled successfully, and false otherwise */ public boolean handleSelection(Client client, CharacterSelectionMessage message) { + Logger.debug("Handling characterSelection..."); if (!participants.containsKey(client.id)) { + Logger.trace("Participant didn't exist, returning..."); return false; } Participant participant = participants.get(client.id); if (participant.state != ParticipantState.Assigned) { + Logger.trace("Participant wasn't assigned, exiting..."); + return false; + } else if (participant.type == ParticipantType.Spectator) { + Logger.trace("Spectator sent message, returning..."); return false; }