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
-
View User Profile
-
Send Message
Posted Mar 7, 2015Yeah, that works very well, thanks :D
-
View User Profile
-
Send Message
Posted Mar 7, 2015@QuiquePineyro
Please try build #46. http://h.cnaude.org:8081/job/Scavenger/46/
-
View User Profile
-
Send Message
Posted Mar 7, 2015okay, this is my SKYPE: QuiqueZL This is if you need the plugin
-
View User Profile
-
Send Message
Posted Mar 7, 2015@QuiquePineyro
I will let you know.
-
View User Profile
-
Send Message
Posted Mar 7, 2015do you need the plugin? Because I can give you
-
View User Profile
-
Send Message
Posted Mar 7, 2015@QuiquePineyro
Okay I need to that to Scavenger. I'll let you know when it is ready.
-
View User Profile
-
Send Message
Posted Mar 7, 2015I use the plugins "xInventories" (is a plugin premium)
http://www.spigotmc.org/resources/xinventories.657/
-
View User Profile
-
Send Message
Posted Mar 6, 2015@QuiquePineyro
This can be resolved by grouping your worlds in your multi world inventory plugin. Scavenger will attempt to detect if you are running a multi inventory plugin. What multi inventory plugin are you using?
-
View User Profile
-
Send Message
Posted Mar 6, 2015Hi, I have a problem to use that plugin. I divide the inventory in my spawn, and I don't want people to have the same things in the survival than in the spawn because I define a specific inventory for them in the spawn but when someone dies in another world, they respawn in the spawn but the thing that they used in the survival world How can I prevent that bug?
-
View User Profile
-
Send Message
Posted Feb 24, 2015@xs0lidus
In your Scavenger/config.yml set Debug to true and then try it again. The debug logs for Scavenger will give you a very good idea which items are recovered from the different slots.
-
View User Profile
-
Send Message
Posted Feb 24, 2015Update: All of row 3 is restored. Have I confused these? Is it actually this...
ROW 1
ROW 2
ROW 3
HOTBAR
?
-
View User Profile
-
Send Message
Posted Feb 24, 2015@cnaude
Thanks, not quite working right though. I'm using slot based recovery, and give a group permission to recover slot 9-17 (row 1), as well as inheriting row 0.
The group inherits row 0 correctly and recovers it, but all of row 1 is dropped, and item 30 (row 3) is for some reason restored.
Config -> http://pastebin.com/d6vs2cRK
Permissions for group -> http://i.imgur.com/ZQMWYNJ.png
-
View User Profile
-
Send Message
Posted Feb 23, 2015@xs0lidus
Fixed in latest build. http://h.cnaude.org:8081/job/Scavenger/38/
-
View User Profile
-
Send Message
Posted Feb 23, 2015@cnaude
okay, did all that. Error on death -> http://i.imgur.com/OZXA4bf.png
-
View User Profile
-
Send Message
Posted Feb 22, 2015@xs0lidus
Also try the very latest Dev builds of ProtocolLib, Spigot, and Scavenger.
-
View User Profile
-
Send Message
Posted Feb 22, 2015@xs0lidus
Before starting up the server delete the plugins/Scavenger/inv1.ser file. It's a workaround that will allow it to start up cleanly. The ProtocolLib dev knows about the issue. There is no permanent fix at the moment.
-
View User Profile
-
Send Message
Posted Feb 22, 2015@cnaude
Any quick fix or known version of Protocollib(using latest dev build right now) that works?
-
View User Profile
-
Send Message
Posted Feb 21, 2015@cnaude
It works fine! Thanks man :)
-
View User Profile
-
Send Message
Posted Feb 21, 2015@hqstwixman
Please try the newest dev build. http://h.cnaude.org:8081/job/Scavenger/36/
-
View User Profile
-
Send Message
Posted Feb 21, 2015@hqstwixman
Okay I'll get a new version built to support it.