Show Custom Name

This commit is contained in:
Debucquoy Anthony 2024-01-29 18:23:02 +01:00
parent af96c5a412
commit 1d34a3040d
Signed by: tonitch
GPG Key ID: A78D6421F083D42E

View File

@ -89,6 +89,7 @@ public class Merchand implements Listener{
m.setGlowing(true);
m.setInvulnerable(true);
m.customName(Component.text(names.get(new Random().nextInt(names.size()))));
m.setCustomNameVisible(true);
inv = Bukkit.createInventory(null, 9, Component.text(m.getName()));
Bukkit.getServer().forEachAudience((a) -> {
if(a instanceof Player ply){