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
@DasDing73
Hm don't work. I think with bpermissions is this not possible isn't it? Here my lines about the scavenger nodes:
@DasDing73
In your permissions file set scavenger.free: false. This will override the ops permission.
Thank you I have tested it only as an op. As an non-op it works well, but I (as an op) wants also to pay for recover my items. Is this possible with the newest version of Scavenger?
@DasDing73
When a person dies do they receive the message that their recovery will cost X amount? Have you tested this as a non-op user? An op will have scavenger.free true by default.
Hi, I have a problem with Scanvenger and iConomy 6. I Have tried around 1 hour to fix it but it didn't work. After the death the money balance is the same. And yes Vault is installed and there is no server error in the logs. Please check this feature.
And thanks for this great plugin!
@turikhay
That is a relief. :)
@cnaude
Oh, excuse me, it was my fault! I'm so sorry...
@turikhay
When does this occur? What version of Bukkit are you running? What does your Scavenger config look like? What other plugins do you have?
It's great plugin, thanks! But, when player dies his inventory drops. Then inventory restores. Hm... in that way players can duplicate its inventories
@cnaude
Awesome, thank you!
@srt4krell
I had an issue with the build configuration. The very latest dev version is 35KB. When I upload a new version it will be the correct size. The dev version includes the ability to change the notification text in the config.yml file.
This plug-in works wonderfully for me. But while I was looking to see where I could change the notification texts, I discovered that inside the .jar is another copy of the .jar, with another inside it, and so on for many, many levels. After lots and lots of extracting (Inception style), I found the small 25KB .jar file without another .jar in it. The current version for download is a .jar that is 1,044KB
So that was weird. But thanks for the plug-in anyway. I run a server with lots of little kids playing it - and it's more fun for them with less permanent loss.
@turikhay
You could disable it per player just by using permissions. Set scavenger.scavenge to false per player or per group.
hm. Can you add the command, that disables the item recovery for each player?
@Megalanias
The latest dev version 1.6.6d.includes support WorldGuard PVP region detection.
Could you make it so, that people who died in pvp won't get their items recovered ... or propably you could make it working with worldguard ... xD
@cosmiccheeese
I just tested Essentials-Pre2.9.2.2 with Scavenger v1.6.6a and it worked exactly as it was supposed to. Perhaps you have another plugin that is interfering? What does your Scavenger config look like?
@cnaude
did not work. sorry it took so long to test.
@cnaude
Thank you very very very much!!!!! :)