mirror of
https://github.com/songoda/EpicVouchers.git
synced 2024-11-21 17:45:48 +01:00
translate colors for editor menu items that were just created
This commit is contained in:
parent
2a74183821
commit
fc0e3ef7c0
@ -29,7 +29,7 @@ public class VoucherMenu extends IconInv {
|
||||
if (getInventory().firstEmpty() != -1) {
|
||||
ItemStack voucherr = voucher.toItemStack();
|
||||
ItemMeta vouchermeta = voucherr.getItemMeta();
|
||||
vouchermeta.setDisplayName(voucher.getName());
|
||||
vouchermeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
|
||||
voucherr.setItemMeta(vouchermeta);
|
||||
addIcon(getInventory().firstEmpty(), voucherr, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user