mirror of
https://github.com/kaboomserver/extras.git
synced 2024-10-31 16:59:24 +00:00
Append to an empty component instead of the prefix (#334)
This commit is contained in:
parent
b3555d92d8
commit
91481b94e4
|
@ -92,10 +92,11 @@ public class PlayerPrefix implements Listener {
|
|||
}
|
||||
|
||||
private static void onUpdate(Player player) throws IOException {
|
||||
final Component prefix = getPrefix(player);
|
||||
final Component displayName = player.displayName();
|
||||
final Component component = Component.empty()
|
||||
.append(getPrefix(player))
|
||||
.append(player.displayName());
|
||||
|
||||
player.playerListName(prefix.append(displayName));
|
||||
player.playerListName(component);
|
||||
}
|
||||
|
||||
@EventHandler(priority = EventPriority.MONITOR)
|
||||
|
|
Loading…
Reference in a new issue