Scavenger
About Scavenger
This is a continuation of the Scavenger plugin originally written by SirHedgehog. This plugin will automatically recover items for players after they die.
Features
- Automatic item recovery at death.
- Individual item recovery based on permissions if enabled.
- Automatic level and experience recovery at death.
- Supports SuperPerms
- Supports Vault based economies.
- Persistent recoveries. If the server is stopped before a player can recover inventory the inventory is saved to disk.
- Slot based recovery
How to install
Just drop the jar file in your plugins directory and restart your server. Configure permissions.
Links
Hooks
Scavenger hooks into several plugins to play nice with their inventory controls.
- Multiverse-Inventories
- MultiInv
- Mob Arena
- PVP Arean
- Ultimate Arena
- Battle Arena
- WorldInventories
- Minigames
- xInventories
Scavenger also hooks into Residence to provide item recovery override per residence.
Scavenger also hooks into Factions to provide item recovery override in enemy territory.
Scavenger optionally hooks into authentication plugins via Authenticator. Update the config.yml accordingly. More info here.
Dependencies
- To use an economy plugin you will need Vault and an economy plugin.
Permissions
- scavenger.scavenge - Enable item recovery
- scavenger.scavenge.damage_cause
- scavenger.level - Enable level recover
- scavenger.exp - Enable experience points recovery
- scavenger.free - Free item recovery
- scavenger.reload - Reload config
- scavenger.drop.[ITEM] - If SingleItemDrops is true then don't recover these items.
- scavenger.keep.[ITEM] - If SingleItemKeeps is true then only recover these items.
- scavenger.self.on - Allows players to enable item recovery for themselves.
- scavenger.self.off - Allows players to disable item recovery for themselves.
- scavenger.disable - Allows players to completely disable Scavenger.
- scavenger.enable - Allows players to completely enable Scavenger.
- scavenger.list - Allows player to list all pending recoveries. (Purely informational)
If you enabled slot based recovery you will need to give each player a permission node for each slot.
- Armour:
- scavenger.armour.X - Armour slots where X is 0, 1, 2, or 3.
- Armor: 0 = boots, 1 = leggings, 2 = chestplate, 3 = helmet
- scavenger.armour.X - Armour slots where X is 0, 1, 2, or 3.
- Inventory
- scavenger.inv.X - Inventory slots where X is 0 to 35.
- Inventory bar: 0 - 8
- Inventory row 1: 9 - 17
- Inventory row 2: 18 - 26
- Inventory row 3: 27 - 35
- scavenger.inv.X - Inventory slots where X is 0 to 35.
- Offhand (shield etc...)
- scavenger.offhand.1
FAQ
Q) How do I explicitly keep items?
A) Set SingleItemKeeps true. Then use scavenger.keep.[ITEM] to keep the ITEM.
Q) How do I explicitly drop items?
A) Set SingleItemDrops true. Then use scavenger.drop.[ITEM] to drop the ITEM.
Commands
- /scvr - Reload configuration
- /scvron - Self enable scavenger
- /scvroff - Self disable scavenger
- /scvrlist - List all pending recoveries
Videos
Configuration
Donations
Doge: DEaQKfC9ivumNgs3feo53xndhjhd4PV5Yk
BTC: 3Nthksfx8fNKkUgZnHWRTaH4MjUMe4dQG8
ETH: 0xf65cB1960e176ea980545f525f687cF2354D310d
XCH: xch1jgtw6vxyy4wv302xlhyuzwtfen67w5yrvcwc2gz2us3fwtjp3uxq6hlzhc
You can also use minecraft command /gamerule keepInventory [true/false] to enable/disable items-dropping-from-inventory-when-player-dies. This works in all versions without any plugin.
@cnaude
See your PM :)
@cnaude
I will do it when i have some time. Sorry i'm busy currently :/
@JohOply
Would you be able to send me the debug output from Scavenger when that occurs?
Hi,
In build 61, seems have a bug with multi-world (i use multiverse and multiverse-inventories) :
1- /saveinv
2- /mv tp to a world which have a separate inventory
3- inventory is automaticaly restored
@KirinP
Fix is building right now: http://h.cnaude.org:8081/job/Scavenger/63/
Edit: 63
@cnaude
There is a bug. When I use command /scvron, I got message from MsgSelfRecoveryDisabled. It should be MsgSelfRecoveryEnabled. Please fix.
@KirinP
Try http://h.cnaude.org:8081/job/Scavenger/61/
@cnaude
its working, no laggs, ty
Is there a way to chage these message?
I can't change these message on config.
@Bodyash
Please try http://h.cnaude.org:8081/job/Scavenger/60/
@Bodyash
That's what I was afraid would happen. I'll get you another build soon.
@cnaude
Inventory restoration is waiting, cause no MoveEventListener.
@cnaude
Authme dev builds
@Bodyash
What auth plugin are you using?
Edit: Please try: http://h.cnaude.org:8081/job/Scavenger/59/
@Bodyash
Does the same lag occur when you play in online mode?
http://i.imgur.com/rqc0RDR.png
Lag, lag
@TheOneTwelfth
When you have a moment please test build #58. http://h.cnaude.org:8081/job/Scavenger/58/
Is there AuthMe integration?
Because I have a bug: when player quits server after dying (instead of respawning) and then rejoins, Scavenger restores his inventory before login. When player logs in, all the items are lost forever. Is there any way to avoid this?
I have OfflineMode set to true in the config file.
Hi! I have a suggestion/idea. (im not sure if its already in here)
But can you make it so that when a player dies he keeps his inventory. But when he dies 4 times quickly after eachother he loses his inventory. (like having a life stock)
So if he has 4 lifes: If he dies 2 times (he keeps his inventory). But after 1 minecraft day. 1 life regenerates. So after 2 minecraft days he has 4 lifes again.
And everytime his lifes go to 0 he drops his inventory and it resets to 4 lifes again.
(understand what i mean?) :P But this could be a cool option to have i think. Especially for rpg servers.