/**
* @param playerName the username.
* @return a ScoreResponseMessage with the user's data.
*/
public static ScoreResponseMessage getScoreMessage(String playerName) {
ScoreResponseMessage scoreResponseMessage = new ScoreResponseMessage();
Player player = AuthenticationService.getPlayer(playerName);
if (player != null) {
scoreResponseMessage.setPlayerName(player.getName());
scoreResponseMessage.setPoints(player.getElopoints() - 500);
scoreResponseMessage.setOldPoints(player.getOldElopoints() - 500);
}
return scoreResponseMessage;
}