Thanks to
@The_osher for the suggestion.
The feature can be enabled by setting the (new) config entry:
Code (YAML):
drop-item-target
: STORE
# GROUND or DESPAWN or STORE - default is GROUND
There are 3 modes:
- GROUND
- The items are dropped (like before)
- DESPAWN
- STORE
- The items in the inventory are stored on file
- When the player is uncuffed, the items are given back to the player
When saving the inventory, slots corresponding to items is also stored.
For any of this to work, you'll obviously need
drop-items-upon-cuff: true.
Alongside that, added a new command:
/cuffemclearstoredinv <player> - allows clearing the stored inventory of a player (i.e one can do so when they leave by using the
cuffed-player-leave-commands commands).
There are also a number of new messages that go along this new feature.
Code (YAML):
[ items-dropped-on-uncuff-dragee
:
"&cNot all items fit in your inventory so &8{nr}&c of them were dropped"
items-not-dropping-upon-cuff
:
"&cItems are not set to drop upon cuffing"
dropper-strategy-no-store
:
"&cThe current dropper strategy does not allow storing of inventories"
dropper-no-stored-inventory
:
"&cThere does not seem to be an inventory for player &8{player}"
dropper-cleared-stored-inventory
:
"&cCleared the stored inventory of &8{player}"