New PlaceholderAPI variable: %inventorykeeper_amount_PlayerName% - Returns the virtual key amount of other players. (Only for online players.)
Now supports executing commands when a player died (Inventory items dropped).
Now supports death check. Now 'Saving stick' will only work when the specific death type enabled.
You will need to add following contents in settings group in config.yml before update!
Code (YAML):
#Execute commands if player inventory drops on death. run-commands-on-death-if-drops: - 'eco take
%player% 50' - '
[OP
]fly off'
#Execute a random command group if player inventory drops on death. run-random-commands-on-death-if-drops: - '10|50|eco take
%player% %random%;tell %player% You lost %random%coins!' - 'tell
%player% You died!' #Execute commands if player inventory drops on respawn. run-commands-on-respawn-if-drops: - '10|40|eco take
%player% %random%' #Execute a random command group if player inventory drops on respawn. run-random-commands-on-respawn-if-drops: - '15|90|effect
%player% minecraft:nausea %random% 0' #The following are the settings for the effective death types #When a death type is set to true, the inventory will be restored if the player died from this death type #If set it to false, the saving stick will not work. #For a detailed explanation of death types, see https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html enabled-death-type:
CONTACT: true
LAVA: true
CRAMMING: true
ENTITY_SWEEP_ATTACK: true
FIRE_TICK: true
ENTITY_EXPLOSION: true
WITHER: true
FIRE: true
MAGIC: true
PROJECTILE: true
CUSTOM: true
FALL: true
SUICIDE: true
DRAGON_BREATH: true
DROWNING: true
LIGHTNING: true
FALLING_BLOCK: true
FLY_INTO_WALL: true
THORNS: true
ENTITY_ATTACK: true
BLOCK_EXPLOSION: true
HOT_FLOOR: true
STARVATION: true
VOID: true
PVP: true