mirror of
https://github.com/songoda/EpicVouchers.git
synced 2024-11-24 19:15:50 +01:00
less horrible naming
This commit is contained in:
parent
fc0e3ef7c0
commit
c76cbe8de8
@ -27,11 +27,11 @@ public class VoucherMenu extends IconInv {
|
|||||||
|
|
||||||
for (Voucher voucher : instance.getVoucherManager().getVouchers()) {
|
for (Voucher voucher : instance.getVoucherManager().getVouchers()) {
|
||||||
if (getInventory().firstEmpty() != -1) {
|
if (getInventory().firstEmpty() != -1) {
|
||||||
ItemStack voucherr = voucher.toItemStack();
|
ItemStack voucherItemStack = voucher.toItemStack();
|
||||||
ItemMeta vouchermeta = voucherr.getItemMeta();
|
ItemMeta voucherItemMeta = voucherItemStack.getItemMeta();
|
||||||
vouchermeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
|
voucherItemMeta.setDisplayName(ChatColor.translateAlternateColorCodes('&', voucher.getName()));
|
||||||
voucherr.setItemMeta(vouchermeta);
|
voucherItemStack.setItemMeta(voucherItemMeta);
|
||||||
addIcon(getInventory().firstEmpty(), voucherr, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
|
addIcon(getInventory().firstEmpty(), voucherItemStack, event -> new OptionMenu(instance, voucher).open(event.getPlayer()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user