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 12, 2012It's spamming 'Getting:' again
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
The new snapshot is uploaded. Please try it and let me know if that helps.
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
I have an idea. Standby ill create another snapshot. :)
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cyclo666
I'm sure that happened to one of my players too...
-
View User Profile
-
Send Message
Posted Aug 12, 2012@cnaude
I spoke too soon, its still duplicating. People are randomly getting their inv restored without even dying now.
One of my players put his items in a chest and went mining, a few minutes later he received a 'your inventory is being restored' and every item he put inside his chest was duplicated into his inv.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
I'm glad that works for you, however, it proves that something is interfering with the respawn event. I'll have to do some research to get a better fix.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cnaude
Seems fine now. Thanks!
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
Try this version: http://dl.dropbox.com/u/30679730/dist/Scavenger.jar
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cnaude
Well I've been using the same plugins for months and this has only been happening since 1.3.
It only seems to break after a server restart.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
Something is strange. Before each "Getting" entry you should see a "Has" and "Enabling" in the logs. I suspect one your plugins is cancelling the "PlayerRespawnEvent" event.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cnaude
scvr shows his inv in the list. I never /reload the server. If I need to make changes I always stop/start.
He left and rejoined the server but it's still spamming the console.
Edit: there's 5 people in the list and it's spamming for all of them.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
Is this after a full stop and start or a reload? What does scvrlist show? Please do a clean stop.
-
View User Profile
-
Send Message
Posted Aug 11, 2012The console is spamming this non stop, even after the player has re spawned:
2012-08-11 20:10:46 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
2012-08-11 20:10:47 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
2012-08-11 20:10:47 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
2012-08-11 20:10:47 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
2012-08-11 20:10:47 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
2012-08-11 20:10:47 [INFO] [Scavenger] [DEBUG] Getting: x_HuNT3RzZ_x.survival
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cnaude
I'm unable to replicate it myself either, but I've had several players report it to me. I've turned debugging on, I'll let you know if I find anything.
If by map groups you mean different worlds then no - they die and re spawn in the same world.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
I'm having a difficult time replicating this issue. Are you able to replicate the issue yourself? Or are your players able to replicate the issue? There is a config option for debugging. If you're able to replicate the issue with debugging enabled that will print very useful information to the console and log.
When the players die and respawn are they respawning in a different map group?
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cnaude
Yes, I mean .ser not .sav.
I'm running bukkit build 2327. Multiverse-Inverntories 2.5-b195. Scavanger 1.10
There's no errors in the console that I have seen.
-
View User Profile
-
Send Message
Posted Aug 11, 2012@cyclo666
What version of CraftBukit, Multiverse-Inventories, Scavenger and other plugins are you running? Do you get any errors on the console? What are these .sav files? Scavenger only uses .ser files.
-
View User Profile
-
Send Message
Posted Aug 11, 2012There seems to a bug with this in 1.3 that some players are experiencing,
When a player dies they will receive a message saying that the inv is currently still restoring, they then receive a old version of their inv plus all the items they had drop on the floor. They basically end up duping items. If I delete the .sav files it seems to temporary stop.
I'm also using the latest version of Multiverse-Inventories
-
View User Profile
-
Send Message
Posted Jul 28, 2012@I9hdkill
Set SingleItemDrops and SingleItemDropsOnly to true.
-
View User Profile
-
Send Message
Posted Jul 28, 2012Hi, i have a problem, for me it is not possible to only recover exp and level. i have PEX. This dont work: - -scavenger.scavenge - scavenger.*
only give the .exp and .level permissions also dont work. Only if i give the group the .scavenge permissions, it restore exp and level. But inventory too, and thats what i dont want. Can you help me?