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 Aug 24, 2012No I'm using multiinv
And as well even though the user doesn't have the permission node it wont disable in the world.
-
View User Profile
-
Send Message
Posted Aug 23, 2012@rebel24
Are you talking about people dying in a creative map and spawning in a survival map? Are you using multiverse-inventories?
-
View User Profile
-
Send Message
Posted Aug 23, 2012I have, thing is when you die in creative and spawn in survival or your "home" your inventory transfers...
-
View User Profile
-
Send Message
Posted Aug 21, 2012@X8Nitsua
Scavenger already does this. Is your armor not being restored?
-
View User Profile
-
Send Message
Posted Aug 21, 2012@rebel24
Just set the permissions per world.
-
View User Profile
-
Send Message
Posted Aug 21, 2012Can we disable scavenger per world? If not please add it
-
View User Profile
-
Send Message
Posted Aug 20, 2012needs to give you back your armor
-
View User Profile
-
Send Message
Posted Aug 20, 2012@cnaude
Yep, still 1.2.5. Has a lot of mods that have to get updated and whatever else so it lags behind a little bit. It's all good. I still use it on the non-tekkit servers and it seems to work better than ever. Thanks =)
-
View User Profile
-
Send Message
Posted Aug 16, 2012can you add a feature when they die they lose a random enchantment on their inventory? Thanks!
-
View User Profile
-
Send Message
Posted Aug 16, 2012@ryvix
I setup a Tekkit server today for some of my players. I noticed Tekkit is based on Bukkit 1.2.5. That makes finding plugins for it a little tricky. I can't make any guarantees that Scavenger works with Tekkit.
-
View User Profile
-
Send Message
Posted Aug 16, 2012@cnaude
I think I tried it but I can't be 100% certain because after I posted that I switched to some other plugin that uses chests on the tekkit server which one of the players recommended. I still use this on the CB server though and it seems to work fine there so far, or at least nobody has complained about losing their inv to me yet.
I checked the logs from before when I noticed they were losing their inv and I am pretty sure this plugin just doesn't do anything. I don't think it would even show it was trying to restore their inv or anything. No errors anywhere either from it. It's like it just disappears until I restart the server. Must be something to do with tekkit.
-
View User Profile
-
Send Message
Posted Aug 15, 2012@ryvix
Have you tried version 1.12 yet? Any errors on the console? When it stops working what exactly does it do?
-
View User Profile
-
Send Message
Posted Aug 15, 2012Hi there, thanks for continuing to work on this =)
I have had some issues when trying to use it on a tekkit server. It works at first but then just randomly stops working with no errors or anything. Does anyone else have this problem?
-
View User Profile
-
Send Message
Posted Aug 13, 2012@cyclo666
Well you have me stumped. I loaded my test server with all of the same plugins as your server. I have not been able to replicate the issue. I'll keep trying different things.
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
Test 4 is the same. But I can confirm that the spam starts as soon as they login but ends when they die
03:40:10 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:10 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:10 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:10 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:10 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:10 [INFO] [Scavenger] [DEBUG] Checking region support for 'survival'
03:40:10 [INFO] [Scavenger] [DEBUG] Has: Wheels204.survival
03:40:10 [INFO] Killed Wheels204.
03:40:12 [INFO] [Scavenger] [DEBUG] Has: Wheels204.survival
03:40:12 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:12 [INFO] [Scavenger] [DEBUG] Enabling: Wheels204
03:40:15 [INFO] [Scavenger] [DEBUG] Getting: Wheels204.survival
03:40:15 [INFO] [Scavenger] [DEBUG] Removing: Wheels204.survival
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cnaude
As soon as the player logs in after a restart. (I think, he could of died as soon as he logged in)
Haven't tried test4 yet, will do soon.
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
When does it start spamming "Getting"? Is that immediately on startup or after someone dies?
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
Okay I just uploaded test4. Thanks for your patience.
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cnaude
Just restarted. Still spamming the same thing
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
Okay i just uploaded snapshot test3. Please try again.