Show Custom Name
This commit is contained in:
parent
af96c5a412
commit
1d34a3040d
@ -89,6 +89,7 @@ public class Merchand implements Listener{
|
|||||||
m.setGlowing(true);
|
m.setGlowing(true);
|
||||||
m.setInvulnerable(true);
|
m.setInvulnerable(true);
|
||||||
m.customName(Component.text(names.get(new Random().nextInt(names.size()))));
|
m.customName(Component.text(names.get(new Random().nextInt(names.size()))));
|
||||||
|
m.setCustomNameVisible(true);
|
||||||
inv = Bukkit.createInventory(null, 9, Component.text(m.getName()));
|
inv = Bukkit.createInventory(null, 9, Component.text(m.getName()));
|
||||||
Bukkit.getServer().forEachAudience((a) -> {
|
Bukkit.getServer().forEachAudience((a) -> {
|
||||||
if(a instanceof Player ply){
|
if(a instanceof Player ply){
|
||||||
|
Loading…
Reference in New Issue
Block a user