mirror of
https://athene2.informatik.unibw-muenchen.de/progproj/gruppen-ht24/Gruppe-02.git
synced 2025-01-19 00:06:16 +01:00
max 10 long name
This commit is contained in:
parent
486c0a9810
commit
0d885203a7
@ -209,7 +209,7 @@ public class ServerGameLogic implements ClientInterpreter {
|
|||||||
|
|
||||||
if (player != null) {
|
if (player != null) {
|
||||||
String name = msg.getName();
|
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.setName(truc);
|
||||||
player.setFigure(new Figure(1, -10, -10, Rotation.LEFT, msg.getFigure()));
|
player.setFigure(new Figure(1, -10, -10, Rotation.LEFT, msg.getFigure()));
|
||||||
//TODO add figure to the map
|
//TODO add figure to the map
|
||||||
|
Loading…
Reference in New Issue
Block a user