RockinChaos / ItemJoin

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

How to reset player's inventory on join, death, per world? #464

Closed MVPFizzy closed 2 years ago

MVPFizzy commented 2 years ago

Thanks for taking the time to open an assistance request!

Please describe your question or what you need help with, in the best detain you can. A clear and concise description of what the problem is. Ex. I need help creating a custom item that is given to the player on join. I want it to be a Diamond Sword and [...]

So All i wanted to ask is how to setup this plugin so it resets player's inventory on join and when die per world? It would be very helpful.

Pastebin Even if it is not related to the problem, please include ALL configuration files in separate Pastebin.com links. This way if we need to help you modify any of these configuration files we will already have them handy.

Please complete the following information:

Additional context Add any other context about the problem here.

RockinChaos commented 2 years ago

I sincerely apologize for the late reply, It sounds like the Clear-Items section in the config.yml will suit your needs. Here is an example;

Clear-Items:
  Type: ITEMJOIN
  Delay-Tick: 2
  Join: true
  Quit: false
  World-Switch: true
  Region-Enter: false
  Options: NONE
  Blacklist: ''

If you want it to be all items change Type: ITEMJOIN to Type: ALL otherwise the config I provided above should work. In addition, you will need to add the following triggers to your items in the items.yml; triggers: JOIN, RESPAWN, WORLD-SWITCH

and if you haven't already add the death-drops itemflag to your items. Example; itemflags: inventory-modify, death-drops

Let me know!~

EDIT: Closing due to inactivity, a new official release of ItemJoin has just been approved. You can now download it here; https://www.spigotmc.org/resources/itemjoin.12661/download?version=451699