mirror of
https://gitlab.com/phoenix-dvpmt/mmocore.git
synced 2025-02-15 13:31:32 +01:00
Support for placeholders in GUI names
This commit is contained in:
parent
c6a45d5120
commit
31e8e42a1e
@ -59,7 +59,7 @@ public abstract class GeneratedInventory extends PluginInventory {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Inventory getInventory() {
|
public Inventory getInventory() {
|
||||||
Inventory inv = Bukkit.createInventory(this, editable.getSlots(), MythicLib.plugin.parseColors(calculateName()));
|
Inventory inv = Bukkit.createInventory(this, editable.getSlots(), MythicLib.plugin.getPlaceholderParser().parse(getPlayer(), calculateName()));
|
||||||
|
|
||||||
for (InventoryItem item : editable.getItems())
|
for (InventoryItem item : editable.getItems())
|
||||||
if (item.canDisplay(this))
|
if (item.canDisplay(this))
|
||||||
|
Loading…
Reference in New Issue
Block a user