src/main/java/com/webcheckers/appl/PlayerLobby.java
public String playError(String username){
        if(!players.containsKey(username)){
            return "That player is not logged in.";
        }
        else if(players.get(username).inGame()){
            return "That player is in a game.";
        }
        else{
            return "That player is currently spectating.";
        }
    }
/**
     * Returns an error depending on what the problem is.
     * @param username the name of the Player
     * @return the error message as a String
     */
Returns an error depending on what the problem is.
@param username the name of the Player
@return the error message as a String
Returns an error depending on what the problem is . @param username the name of the Player @return the error message as a String
public String playError(String username){
        if(!players.containsKey(username)){
            return "That player is not logged in.";
        }
        else if(players.get(username).inGame()){
            return "That player is in a game.";
        }
        else{
            return "That player is currently spectating.";
        }
    }
public String playError ( String username ) { if ( ! players . containsKey ( username ) ) { return "That player is not logged in." ; } else if ( players . get ( username ) . inGame ( ) ) { return "That player is in a game." ; } else { return "That player is currently spectating." ; } }
Returns an error depending on what the problem is.
Returns an error depending on what the problem is .