Death Loot Manager
>>> What is this?
You own a Faction, RPG, or any server with a working economy and an important PvP or PvE side ? If yes, you probably know that when fighting, everyone wants to be as close as possible to the targeted entity to have a chance to get the loot. Pretty ineffective, isn't it?
With this plugin, each player can receive the part of the loot corresponding to his participation to the kill.
>>> Features
- Define a loot attribution mode (see options below)
- Provide an extra storage bag to each player containing loot that don't fit player's inventory
- Protect loot dropped on floor for its owner for a defined time
- Setup all messages & settings in config.yml
>>> Permissions & commands
Permissions:
deathloot.bypass : all players with this permission won't be affected by loot repartition on death
deathloot.admin : allow player to reload config
deathloot.bagsize.<number>: define the player's bag size. The number is the rows count of the inventory, it must be between 1 and 6. If the player doesn't have this permission, he can't use the loot bag.
Commands:
/dl loot: open GUI containing player's loot.
/dl reload: reload plugin's configuration.
>>> Configuration
loot_attribution_mode: Attribution mode used by the plugin. Currently, 3 available: DISPATCH_BETWEEK_KILLERS, ALL_FOR_KILLER and NONE.
damage_history_retention: duration (in ticks, 20 ticks = 1 second) for which damage inflicted by a player to an entity is kept. The longer the duration is, the more players might receive a part of the loot.
apply_to_players: If true, let players drops be handled by the plugin. Otherwise, vanilla drop is used.
apply_to_entities: If true, let entities drops be handled by the plugin. Otherwise, vanilla drop is used.
protect_dropped_loot: if true, the loot which doesn't fit in both player's inventory and bag is dropped and reserved for the player for the defined time.
protect_dropped_loot_duration: duration (in ticks) for which the dropped loot can only be picked up by its owner. After the duration expiration, anyone can take it.
spawn_dropped_loot_on_killer: If true, extra loot is dropped at player's location. If false, items are dropped at the killed entity location.
messages: contains all messages, change them if you want.
stored_items: stores player's bags data. You should never modify this.
>>> Dev API
An API is available for this plugin. You can access it via static methods of DeathLootAPI class. 2 events are also provided:
EntityLootEvent: called when an entity loot is handled by the plugin.
DispatchLootEvent: called when the loot has been attributed to each player.
>>> Any question?
Send me a PM on Spigot or Discord (Bullobily#6169)