mirror of
https://github.com/darksaid98/Carbon.git
synced 2026-12-03 06:28:54 +00:00
Set display names on platforms
This commit is contained in:
1 parent
6a829cf599
commit
3818957b56
2 files changed
+25
No files matched your search
@@ -25,6 +25,17 @@ public class CarbonPlayerBukkit extends CarbonPlayerCommon {
|
||||
super(username, displayName, uuid, Identity.identity(uuid));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void displayName(final @Nullable Component displayName) {
|
||||
super.displayName(displayName);
|
||||
|
||||
final Player player = this.player();
|
||||
|
||||
if (player != null) {
|
||||
player.displayName(displayName);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public @NonNull Audience audience() {
|
||||
final Player player = this.player();
|
||||
|
||||
Reference in new issue
Block a user