RockinChaos / ItemJoin

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

auto-remove #558

Closed vuhgyxg closed 9 months ago

vuhgyxg commented 10 months ago

Server Version

spigot 1.8

Resource Version

itemjoin-6.0.2v

Dump Information

https://pastebin.com/jjFkJgX2

Describe The Problem

Hi can you help me, I use itemjoin compass with Chestcommands in my server, but when I teleport to world like pvp the compass stays in my inventory how can I remove it

Additional Context

No response

Checklist

RockinChaos commented 10 months ago

Have you tried using the auto-remove itemflag? That is what its designed for, I see you put it in the title but it doesn't seem to be on the item in ur pastebin so I am unsure if you tried it.

Keep in mind you also must define the world-switch trigger so auto-remove is allowed to function upon switching worlds.

It should look something like this;

items:
  compass-item:
    id: compass
    slot: 0
    name: '&aQuick Compass'
    interact:
      - 'console: cc open compass %player%'
    itemflags: auto-remove
    triggers: join, world-switch
    enabled-worlds: world
vuhgyxg commented 10 months ago

the code worked thanks man im beginner so i d have alot exp