From 1d34a3040db1d575b1d68868f624f2c75bbeb6a6 Mon Sep 17 00:00:00 2001 From: Anthony Debucquoy Date: Mon, 29 Jan 2024 18:23:02 +0100 Subject: [PATCH] Show Custom Name --- .../src/main/java/ovh/herisson/thevoidroad/Entity/Merchand.java | 1 + 1 file changed, 1 insertion(+) diff --git a/TheVoidRoad/src/main/java/ovh/herisson/thevoidroad/Entity/Merchand.java b/TheVoidRoad/src/main/java/ovh/herisson/thevoidroad/Entity/Merchand.java index 793a22c..81f2413 100644 --- a/TheVoidRoad/src/main/java/ovh/herisson/thevoidroad/Entity/Merchand.java +++ b/TheVoidRoad/src/main/java/ovh/herisson/thevoidroad/Entity/Merchand.java @@ -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){