Ensured Client username updating in ClientModle for ui
This commit is contained in:
parent
8c9d40a6d8
commit
bc77f5dad2
@ -143,6 +143,7 @@ public class ClientHandler implements Runnable {
|
||||
*/
|
||||
public void setUsernameOnLogin(String name) {
|
||||
this.clientUserName = nameDuplicateChecker.checkName(name);
|
||||
sendMsgToClient(Protocol.changedUserName + "$" + clientUserName);
|
||||
broadcastAnnouncementToAll(clientUserName + " has joined the Server");
|
||||
|
||||
/* The following lines could be un-commented to provide Lobby information on login
|
||||
|
||||
Reference in New Issue
Block a user