mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 14:38:49 +00:00
Fix nicknames and set player list names
This commit is contained in:
1 parent
6c9b87b317
commit
3efb75a725
2 files changed
+3
-1
No files matched your search
@@ -65,6 +65,7 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
if (user.isOnline()) {
|
||||
if (user.getNickname() != null) {
|
||||
user.asPlayer().setDisplayName(user.getNickname());
|
||||
user.asPlayer().setPlayerListName(user.getNickname());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,8 @@ public class CarbonChatUser implements ChatUser, ForwardingAudience {
|
||||
this.nickname = nickname;
|
||||
|
||||
if (isOnline()) {
|
||||
this.asPlayer().setDisplayName(null);
|
||||
this.asPlayer().setDisplayName(nickname);
|
||||
this.asPlayer().setPlayerListName(nickname);
|
||||
}
|
||||
|
||||
if (!fromRemote) {
|
||||
|
||||
Reference in new issue
Block a user