mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-01 14:38:48 +00:00
Add option to disable nicknames in tab
This commit is contained in:
1 parent
3efb75a725
commit
741b64a42a
3 files changed
+10
-2
No files matched your search
@@ -65,7 +65,10 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
if (user.isOnline()) {
|
||||
if (user.getNickname() != null) {
|
||||
user.asPlayer().setDisplayName(user.getNickname());
|
||||
user.asPlayer().setPlayerListName(user.getNickname());
|
||||
|
||||
if (carbonChat.getConfig().getBoolean("nicknames-set-tab-name")) {
|
||||
user.asPlayer().setPlayerListName(user.getNickname());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -86,7 +86,10 @@ public class CarbonChatUser implements ChatUser, ForwardingAudience {
|
||||
|
||||
if (isOnline()) {
|
||||
this.asPlayer().setDisplayName(nickname);
|
||||
this.asPlayer().setPlayerListName(nickname);
|
||||
|
||||
if (carbonChat.getConfig().getBoolean("nicknames-set-tab-name")) {
|
||||
this.asPlayer().setPlayerListName(nickname);
|
||||
}
|
||||
}
|
||||
|
||||
if (!fromRemote) {
|
||||
|
||||
@@ -111,6 +111,8 @@ item-link-placeholders:
|
||||
|
||||
spy-prefix: '<color>[SPY] '
|
||||
|
||||
nicknames-set-tab-name: true
|
||||
|
||||
pings:
|
||||
enabled: true
|
||||
source: 'PLAYER'
|
||||
|
||||
Reference in new issue
Block a user