I was wondering if it would be possible to keep certain items on death, such as a map, without affecting the default new player spawn inventory.
Any info is appreciated!
Keep certain items on death
-
- English
- yellow51
- Thread is marked as Resolved.
A small new update is available now!
-
-
Please see https://javadoc.rising-world.n…pi/objects/Inventory.html for inventory API access.
You could hook into the onPlayerDeathEvent, grab the inventory of the player, store it, and then add certain items back to the player on respawn.