RockinChaos / ItemJoin

Get custom items on join.
https://www.craftationgaming.com/
GNU Lesser General Public License v3.0
137 stars 35 forks source link

Player head is placed #581

Open kexor12 opened 5 months ago

kexor12 commented 5 months ago

Server Version

bukkit 1.20.1

Resource Version

ItemJoin v6.0.5-RELEASE

Dump Information

https://ci.craftationgaming.com/dump?id=temojitopa

Describe The Problem

so i maked a custom skull with texture and when the player is clicking right click on a block the Deluxe Menu opens but the head is placed and doesn t return back to the player

Additional Context

This is the items.yml config

--{ =-=-=-=-=-=-=-=-=-= ItemJoin's Custom Item Configurations, by RockinChaos =-=-=-=-=-=-=-=-=-= }--

See the tutorial page for a more in-depth explanation; https://github.com/RockinChaos/ItemJoin/wiki

Join the discord for easy plugin support; https://discord.gg/D5FnJ7C

Modifying the Version will cause this file to break and regenerate.

items-Version: 8

General options that apply to the custom items' functionality.

items-Delay: 2 items-Overwrite: true items-Spamming: true items-RestrictCount: false

This is the section that the custom created items will be stored.

All created items should be saved under the 'items' section for each 'custom-item' subsection.

items: gameselector: id: 'SKULL_ITEM:3' slot: 0 skull-texture: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODc5ZTU0Y2JlODc4NjdkMTRiMmZiZGYzZjE4NzA4OTQzNTIwNDhkZmVjZDk2Mjg0NmRlYTg5M2IyMTU0Yzg1In19fQ==' name: '&eSectiuni' lore:

Checklist

RockinChaos commented 5 months ago

Hi, Apologies for the late response. I just finished up my college degree so I am slowly getting back into the swing of things.

The first issue I see is you are using SKULL_ITEM:3 which is likely the reason for the item breaking/ignoring the placement itemflag. Thats a legacy ID, I would try changing the id to PLAYER_HEAD instead.

Additionally, the deluxe menu likely won't open with the command you specified. DeluxeMenu's limits what can use the custom commands defined so plugins cannot use them.

You will need to open it using their built-in command via dm open <menu> instead.

So your items should look as follows;

  devine-item:
    id: 'PLAYER_HEAD'
    slot: 0
    skull-texture: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvODc5ZTU0Y2JlODc4NjdkMTRiMmZiZGYzZjE4NzA4OTQzNTIwNDhkZmVjZDk2Mjg0NmRlYTg5M2IyMTU0Yzg1In19fQ=='
    name: '&eSectiuni'
    lore:
    - '&etest'
    interact-right:
    - 'player: dm open <menu>'
    itemflags: inventory-modify, placement
    triggers: join, respawn, world-switch
    enabled-worlds: world, world_nether, world_the_end
  info:
    id: 'PLAYER_HEAD'
    slot: 4
    skull-texture: 'eyJ0ZXh0dXJlcyI6eyJTS0lOIjp7InVybCI6Imh0dHA6Ly90ZXh0dXJlcy5taW5lY3JhZnQubmV0L3RleHR1cmUvM2MxOTAzNDAwZDg1NmQwNTcwYTA2ZDI0ZjlhYWRlMjE4YmE3YWU4OTgyMjEyOTVjMGIzNmRlNjU1YzJkYzc2NSJ9fX0='
    name: '&eInformatii'
    lore:
    - '&7Apasa click dreapta pentru a afisa'
    - '&eInformatiile &7serverului'
    interact-right:
    - 'player: dm open <menu>'
    itemflags: inventory-modify, placement
    triggers: join, respawn, world-switch, region-enter
    permission-node: itemjoin.ultra
    enabled-regions: region1, region2
    enabled-worlds: world, world_nether, world_the_end