diff --git a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java index 0685b39..62cdd72 100644 --- a/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java +++ b/Projekte/monopoly/model/src/main/java/pp/monopoly/game/server/ServerGameLogic.java @@ -174,8 +174,7 @@ public class ServerGameLogic implements ClientInterpreter { Player player = playerHandler.getPlayerById(from); if (player != null) { player.setName(msg.getName()); - player.setColor(msg.getColor()); - player.setName(msg.getName()); + playerHandler.setPlayerReady(player, true); LOGGER.log(Level.DEBUG, "Player {0} is ready", player.getName()); } }