When you die, by default the plugin will take a certain amount of coins from your purse that is defined in config.
You can define different percents to lose based on different death events!
purse_death_example.yml
purse-coins-handle:#Set this to false if you don't want players to#lose coins on deathuse-purse-coins-death:true#Use numbers from 0 to 100 for percentsdefault-percent:50default-message:'&cYou died and lost %coins% coins from your purse!'death-events:#Here you can create custom percents for every death cause in the list from the link below#If the event is not specified but the use-purse-coins-death is true, it will take#the default percent #Check death causes at https://hub.spigotmc.org/javadocs/spigot/org/bukkit/event/entity/EntityDamageEvent.DamageCause.html
event1:death-cause:'ENTITY_ATTACK'percent-to-take:50message-to-give:'&cYou lost %coins% coins for being killed by a mob/player.'event2:death-cause:'VOID'percent-to-take:50message-to-give:'&cYou lost %coins% coins for falling in the void.'