ItemJoin

ItemJoin

157k Downloads

Placeholders in lores

ArmanUppal opened this issue ยท 1 comments

commented

Server Version

PaperSpigot 1.20

Resource Version

ItemJoin v6.0.2

Dump Information

n/a

Describe The Problem

I heard that using this plugin you can out placeholders in lores. I wanted to make one for fortune on a pickaxe so everytime i get a higher fortune the placeholder also changes. How can I do this?

Additional Context

No response

Checklist

  • I am running latest version of this resource.
  • I have read the wiki to make sure it's not an issue with configuration.
  • I ticked all of these boxes without actually reading them.
  • I have checked that my help request is unique and another request does not exist.
  • I acknowledge this is not a bug report and is instead a help request.
commented

Apologies for the late reply,

After a lot of looking around it looks like you would want the Player expansion from PlaceholderAPI and to use the placeholder %player_item_in_hand_level_LOOT_BONUS_BLOCKS%

The custom item would need to have the dynamic itemflag as well so it can update the lore's placeholder automagically.

An item may look like this;

  mining-item:
    id: DIAMOND_PICKAXE
    slot: 0
    lore:
      - '&aYou have a Level &c%player_item_in_hand_level_LOOT_BONUS_BLOCKS% &aPickaxe!'
    itemflags: dynamic

EDIT: Closing due to inactivity, I assume that I have answered the question. Feel free to reopen this issue if you still need additional help.