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 Jan 22, 2013@ryvix
I'm able to replicate this issue on my test server. I'm looking for a fix now. It's an issue with attempting to serialize inventory with meta information.
-
View User Profile
-
Send Message
Posted Jan 22, 2013@cnaude
I am using Multiverse Inventories 2.5-b335.
I believe when they log out of the server if they haven't moved, or crash when they die for some reason, they are losing their inventories.
I just saw the error EnderdragonDE posted and went to check for it in my log and found it and also realized I am one version behind on Scavenger because I didn't think I needed those 2 features.
I am actually in offline mode though because I am behind BungeeCord (not a plugin but a sort of proxy) which authenticates players against minecraft.net before letting them connect to the server. Would that cause this to happen?
http://pastebin.com/8JTmKCB9
-
View User Profile
-
Send Message
Posted Jan 22, 2013@EnderdragonDE
Do you happen to know what item caused that?
-
View User Profile
-
Send Message
Posted Jan 22, 20132013-01-23 00:50:15 [SEVERE] [Scavenger] writing aborted; java.io.NotSerializableException org.bukkit.craftbukkit.v1_4_R1.inventory.CraftMetaItem
using the latest scavenger snapshot and 1.4.7-R0.2 (Build #02609)
-
View User Profile
-
Send Message
Posted Jan 22, 2013@ryvix
Scavenger will only restore inventory when a player moves after dying. This is a safety mechanism. It shouldn't cause anyone to lose their inventory. What version of Multiverse-Inventories are you running?
-
View User Profile
-
Send Message
Posted Jan 22, 2013Hey there, Is it normal for people to not get their stuff back until they move? If they don't move and log out they are never getting their stuff it seems. I don't know if this is because I have Multiverse Inventories or just the way it is or what the deal is.
-
View User Profile
-
Send Message
Posted Jan 21, 2013@cnaude
Well I did not change anything since yesterday but today the plugin seem to work I will test it more later today I still send you the debug file and thanks again for the quick answer I love your plugin!
http://pastebin.com/b7XtW9yE
-
View User Profile
-
Send Message
Posted Jan 21, 2013@sw33td3vil
Can I see the server.log output from the latest attempt?
-
View User Profile
-
Send Message
Posted Jan 20, 2013@cnaude
I've tried the snapsote and still the same
-
View User Profile
-
Send Message
Posted Jan 20, 2013@sw33td3vil
@sw33td3vil
Try the latest snapshot and let me know if it works better for you. http://dl.dropbox.com/u/30679730/dist/Scavenger.jar
-
View User Profile
-
Send Message
Posted Jan 20, 2013Thanks alot you're plugin is amazing all my member loved it :) and thanks for the quick answer they can't wait to get others loot!
-
View User Profile
-
Send Message
Posted Jan 20, 2013@sw33td3vil
Excellent log output. This should help me isolate the problem.
-
View User Profile
-
Send Message
Posted Jan 20, 2013@cnaude
I've done what you asked
http://pastebin.com/cyjwuAZ7
-
View User Profile
-
Send Message
Posted Jan 20, 2013@sw33td3vil
Please enable debug mode in the config.yml for Scavenger. This will output some useful information to the server.log. Do this and test the enemy faction again. The send me the output from the server.log.
-
View User Profile
-
Send Message
Posted Jan 20, 2013Factions V 1.6.9.4 and yeah they recover their items no matter what
-
View User Profile
-
Send Message
Posted Jan 20, 2013@sw33td3vil
What version of factions did you test this with? When you say nothing happens, does that mean yours items were recovered?
-
View User Profile
-
Send Message
Posted Jan 20, 2013I have Factions and even if I set
Nothing happen when they get killed in an ennemy faction territory? Did I have to use a permission or something special with factions?
-
View User Profile
-
Send Message
Posted Jan 18, 2013@legendblock
In your config.yml:
-
View User Profile
-
Send Message
Posted Jan 15, 2013wow you guys provide korean. i love it How can i change Languages?
-
View User Profile
-
Send Message
Posted Jan 10, 2013This plugin is amazing because you guys work very quickly! Thank you for that :)