mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-04 06:28:53 +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.isOnline()) {
|
||||||
if (user.getNickname() != null) {
|
if (user.getNickname() != null) {
|
||||||
user.asPlayer().setDisplayName(user.getNickname());
|
user.asPlayer().setDisplayName(user.getNickname());
|
||||||
|
user.asPlayer().setPlayerListName(user.getNickname());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -85,7 +85,8 @@ public class CarbonChatUser implements ChatUser, ForwardingAudience {
|
|||||||
this.nickname = nickname;
|
this.nickname = nickname;
|
||||||
|
|
||||||
if (isOnline()) {
|
if (isOnline()) {
|
||||||
this.asPlayer().setDisplayName(null);
|
this.asPlayer().setDisplayName(nickname);
|
||||||
|
this.asPlayer().setPlayerListName(nickname);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!fromRemote) {
|
if (!fromRemote) {
|
||||||
|
|||||||
Reference in new issue
Block a user