mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-02 06:28:54 +00:00
Fix rainbow nicknames. Legacy sucks.
This commit is contained in:
1 parent
9abdc0df4c
commit
45f2915980
8 files changed
+29
-24
No files matched your search
@@ -105,10 +105,16 @@ public class CarbonChatChannel extends ChatChannel {
|
||||
|
||||
String displayName;
|
||||
|
||||
if (user.isOnline()) {
|
||||
displayName = user.asPlayer().getDisplayName();
|
||||
if (user.getNickname() != null) {
|
||||
System.out.println("one");
|
||||
displayName = user.getNickname();
|
||||
} else {
|
||||
displayName = user.asOfflinePlayer().getName();
|
||||
System.out.println("null????");
|
||||
if (user.isOnline()) {
|
||||
displayName = user.asPlayer().getDisplayName();
|
||||
} else {
|
||||
displayName = user.asOfflinePlayer().getName();
|
||||
}
|
||||
}
|
||||
|
||||
// Iterate through players who should receive messages in this channel
|
||||
|
||||
Reference in new issue
Block a user