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 Jul 22, 2012@cnaude
Yey, Thanks xD
-
View User Profile
-
Send Message
Posted Jul 22, 2012@harryjamesuk
Just set DropOnPVPDeath to true. This is a new feature in 1.10.
-
View User Profile
-
Send Message
Posted Jul 22, 2012Can you make it so there's an option in the config so when you get PVP killed, your inventory will not be restored because I have a PVP world and the point of it is that you kill another person and take their items.
Thanks in advance!
-
View User Profile
-
Send Message
Posted Jul 21, 2012@MERCHANToDEATH
Fixed in 1.10.
-
View User Profile
-
Send Message
Posted Jul 19, 2012Thanks for the quick reply. I see what you are saying, I use Heroes, so the xp thing is all handled by it. I have used a couple of other plugins to let players keep their inventory and your's is definitely the best and most reliable. Thanks for your hard work.
-
View User Profile
-
Send Message
Posted Jul 19, 2012@MERCHANToDEATH
It's actually supposed to not charge players when there is nothing to recover. The problem however is related to the way it checks for xp and level. I will fix this.
-
View User Profile
-
Send Message
Posted Jul 19, 2012Is there a way to not charge people when they have no inventory to keep? Some of my players are complaining about that, I would love to be able to shut them up. Thanks.
-
View User Profile
-
Send Message
Posted Jul 19, 2012@KingRainb0w
You can disable/enable it per world using your favorite permissions plugin.
-
View User Profile
-
Send Message
Posted Jul 19, 2012Does this work with all the worlds, or can you set them in the worlds you choose?
-
View User Profile
-
Send Message
Posted Jul 15, 2012@cnaude
Sweet, you rock.
-
View User Profile
-
Send Message
Posted Jul 14, 2012@LunarDelta
The latest snapshot has this feature. Just set DropOnPVPDeath in the config.yml.
-
View User Profile
-
Send Message
Posted Jul 10, 2012Would it be possible to add an option that would make it so that players would not save any items at all if they are killed by another player (regardless of any region settings) That would be totally awesome.
-
View User Profile
-
Send Message
Posted Jul 3, 2012@xXShadowoifXx
Try my LoseItAll plugin.
-
View User Profile
-
Send Message
Posted Jul 3, 2012Is there some way that i can make it so that nobody can recover anything. The items just disappear completely on death? I am going to run a pvp server and i don't want to have entity issues and it just makes more sense for people to lose EVERYTHING... Please let me know =D TY and how?
-
View User Profile
-
Send Message
Posted Jun 30, 2012@cnaude
Thanks for help!
-
View User Profile
-
Send Message
Posted Jun 29, 2012@Qbikplace
If you want all items to be dropped except diamond sword do this:
Then for each player or group give this permission.
-
View User Profile
-
Send Message
Posted Jun 29, 2012So,as i understand,if i want only Diamond sword NOT to be dropped on death,i have to write all IDs except 276 with scavenger.drop.[ITEM NUMBER]?Can i reverse that function to write only scavenger.drop.276?
-
View User Profile
-
Send Message
Posted Jun 29, 2012@Qbikplace
This is already possible.
See config: SingleItemDrops: false If SingleItemDrops is true and SingleItemDropsOnly is false then only explicitely denied drops will be dropped. If this is true then you must explicetly allow players to keep each item and everything else is dropped. SingleItemDropsOnly: false
Permission: scavenger.drop.[ITEM NUMBER] - If SingleItemDrops is true then don't recover these items.
-
View User Profile
-
Send Message
Posted Jun 29, 2012Hi!Can you make it to only restore certain items,which i could adjust by ID?
-
View User Profile
-
Send Message
Posted Jun 27, 2012@cnaude
Thanks =)