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
Hi! I love this plugin, but do not have enough rollback recovery. If you add this to the plugin, I'll be happy.
How about group based prices with Vault? It would be really nice.
Looking for some testers for the new per item recovery. PM me to get the test version. The new version will allow per item recovery based on permissions. You can define which items are recoverable, or which items are non recoverable.
@cnaude
Not that I know of, then again I haven't dug much into WorldGuard, nor is my java knowledge sufficient enough for it :P
@Kevdama
I've been reading the worldguard wiki and I don't see any information on an API I can hook into. If there was an API I could hook to then I could check region flags. Do you know if it's possible to add custom flags?
Best recovery plugin EVER - already used it months ago.
Is there a way to make it so that scavenger only works in certain regions? Preferably set by WorldGuard?
@ApocolypseNL
I suspect that is the case.
@cnaude
http://kryptoncraft.ru/index/bug/0-13 Like this plugin.
@cnaude
Thanks, yes i also had an email from him about it. Maybe the losing of inventory also is because of the conflict? :$
we will see :)
@ApocolypseNL
The author of Antishare is working on a fix to prevent interfering with Scavenger.
I have not been able to reproduce the losing of inventory. I have some ideas but ill need to do some testing.
Thank you very much :)
If i had some error msg, i would send it to you, but it is not showing anything.
Since a few hours or so, players are also losing there complete inventory aswell like you said here.
I hope you can reproduce! Thanks for the response :D
@ApocolypseNL
I believe Antishare can definitely interfere with Scavenger. I'm looking at their source right now.
I know that in the past I have seen the issue of players losing their inventory sometimes. I think this can happen if a player dies and then does not respawn. I'll try to reproduce it and see if there is a workaround.
@cnaude,
First of all I love the work you doing with this plugin. But i got a little bit of a problem:
When someone dies there items get duplicated. I had a player that had 64 tnt when he died. When he revived he had 128 tnt.
any ideas?
Other inventory mod i use:
Antishare
Could this be a conflict or is this an error?
edit: also once in a while they lose there inventory.
@rickky2
I don't really understand the point of these two plugins. Is this so that admins can their servers in offline mode?
According to the authme plugin users can be placed into groups automatically if authenticated. That sounds like it would work just fine with the current version of Scavenger.
Can you support authme and xauth?
Can't wait the update with XP and level recovery =) Very nice job!
@ledhead900
That is possible.
@ledhead900
Ok was it was not an issue was just asking, but what about my suggestion about gear being slightly more damaged then it was before death ?
@Confuzzled77
Please try this version and let me know if it works as you expect. I added MaxCost to the config file. There is also a new scvr command available. This will allow you to reload the config without restarting the server to pickup config changes.