diff --git a/src/main/java/net/slqmy/template_paper_plugin/custom_item/AbstractCustomItem.java b/src/main/java/net/slqmy/template_paper_plugin/custom_item/AbstractCustomItem.java index 74103860..3636f6c7 100644 --- a/src/main/java/net/slqmy/template_paper_plugin/custom_item/AbstractCustomItem.java +++ b/src/main/java/net/slqmy/template_paper_plugin/custom_item/AbstractCustomItem.java @@ -30,12 +30,12 @@ public AbstractCustomItem(TemplatePaperPlugin plugin, String itemId, Material ma Bukkit.getPluginManager().registerEvents(this, plugin); } - public abstract ItemStack getCustomItem(Player player); + protected abstract ItemStack generateCustomItem(ItemStack baseCustomItem, Player player); - protected ItemStack getBaseCustomItem() { + public ItemStack getCustomItem(Player player) { ItemStack item = new ItemStack(material); item.editMeta((meta) -> meta.getPersistentDataContainer().set(itemIdKey, PersistentDataType.STRING, itemId)); - return item; + return generateCustomItem(item, player); } public boolean isItem(ItemStack itemStack) {