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
@Lice23
The latest dev version has configurable messages.
Ok Thank you !!!!! Its works :DDDD
Can u add a option to change the display Text ? that in can translate the Messages ???
@Lice23
Are you testing this as yourself as an op? Ops automatically get scavenger.free. Try deop yourself first and test again. Also make sure to set Permissions: true.
@Lice23
i have only - scavenger.scavenge in the Permissions.
and i want that the users must pay 80 % when he died.
@Lice23
How much are they being charged? Your MaxCost is set to 80 which means they will never be charged more than 80. Also make sure scavenger.free is set to false.
Hi. i use Essentials and Groupmanager. my Config.
But no one drop 80 % from his money :(
Vault i have installed. Sorry for my bad english
@cosmiccheeese
Please try this version. Set "Permissions: false" in the Global section. http://dl.dropbox.com/u/30679730/Scavenger.jar
great mod though i am having one issue. I am using Essentials Pre2.9.2.1 and no permission plugins. as of right now if a person is not an op scavenger will not work.
I also have no economy plugins.
any idea the cause?
@metalguitarist
This is a fairly easy thing to add.
@ntscape
v1.6.6 fixes this.
Could you add a feature to only save certain inventory slots? Like for example the player only keeps their hot-bar or their armor slots?
@ntscape
I created a new version that will save pending recoveries to disk when the server is stopped. Please test this and let me know if it works out for you. http://dl.dropbox.com/u/30679730/Scavenger.jar
@cnaude
Thank you so much!!
You are my hero! :)
@ntscape
I'll see what I can do. :)
@cnaude
Oh..my... They are already quit in dead condition.
Could you help me please? I need something useful feature.
@ntscape
The items used for recovery are stored in memory. If you shutdown the server before a player has a chance to respawn then the items will be lost.
Please check this steps!
1. Player dead.
2. Not "respawn", select "title screen"
3. Server shutdown.
4. Server start
5. Connect, and respawn.
6. Check inventory! is Empty!
Thanks for read! :)
@cnaude
Rolling back the next use. For example to use once every 60 seconds
@linkinkov
What is rollback recovery and how would that work with Scavenger?