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 02023e2..c74afe7 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 @@ -209,7 +209,7 @@ public class ServerGameLogic implements ClientInterpreter { if (player != null) { String name = msg.getName(); - String truc = name.length() > 15 ? name.substring(0, 15) : name; + String truc = name.length() > 10 ? name.substring(0, 15) : name; player.setName(truc); player.setFigure(new Figure(1, -10, -10, Rotation.LEFT, msg.getFigure())); //TODO add figure to the map