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
@TheArdamedonner
Please try build #56: http://h.cnaude.org:8081/job/Scavenger/56/ Added /saveinv and /restoreinv commands. (Perms: scavenger.saveinv & scavenger.restoreinv)
Hi I search a plugin that allows me to store players inventory when he goes to a mini game. In the game his inventory will be clreared and changed. After the game has finished, I like to restore the inventory to the state it had before the game. So I need two commands: saveInventory restoreInventory Should not be a big problem as seen here: https://www.spigotmc.org/threads/save-inventory-and-then-load-it.43907/
Question. Is your plugin able to do that? If not, do you know one or are you willing to add that functionality to your one?
Hi
Could you add support of Authme to disable recovery until player insn't logged, please ?
I had a "bug" once : when a player leave the game into the world A (inventory A) and he comes back to server later (world B because of Authme spawn, and inventory B), the inventory isn't restored into the correct world.
@maxlehot1234
Verify that you have the correct permissions setup for inventory recovery. Debug mode might help determine why recovery doesn't work for you.
Latest Jenkins build (54) removes the extra logging.
Yes see line 58 of sample config.yml.
Hi, why I doesn't see the chat message when I die and come back ? Nothing about the inventory save and restore...
is it possible to remove this line on the console: [Scavenger] Player respawn playername
Is it posible to change the message prefix?
@cnaude
Any news ? :)
Sent via PM.
@JohOply
Can I get your plugin list?
Hi
- Loose part of XP : http://pastebin.com/HxfzQEJn (I can't reproduce for now bug of loose all XP)
- I don't know but maybe bug of loose items in only 1 world is fixed, for myself it's ok, i'll go to ask to my players and give you logs
- Keep items because of OP (i think) even if /scvroff was used http://pastebin.com/wTkT4DJa
@JohOply
Please try http://h.cnaude.org:8081/job/Scavenger/52/
@JohOply
Th debug log indicates a permission issue. I'll create a new dev build that will make the issue more obvious in the debug logs.
Another player died in "Mine" world and stuff is definitivly lost (bug appears only in this world)
http://pastebin.com/J2fvj3KN
The same player in another world : http://pastebin.com/04xvu5cZ (stuff is on the ground)
A player died with all permissions (save stuff + xp) but he looses the XP
http://pastebin.com/3M7ptJcv
@cnaude
Hi
Config : http://pastebin.com/7c5b3Juf
Spigot : 1.8.3-b421 ; PEX 1.23.2 ; Players who loose their items forever hasn't any permission, players who disable their items OP + all perms
I can't give you a debug log now, i'll try to give you it as soon as possible.
Thanks!
@JohOply
-I think I know what the problem is. I'll get a fix out soon.- I did some additional testing and it is working exactly as it should. Please pastebin your config and debug log if possible as well. You can enable debug mode in the config.yml.@JohOply
What version of CraftBukkit/Spigot? What permission plugin? Can I see a pastebin of your Scavenger config? What permission plugin? What permissions are you giving the payers?
Hi !
I have a problem : players which havn't perm' lost their items forever when they die, and a player which disable save items with the /scvroff keep all items... Have you any idea to fix it?
@Karfagenych
Nope. Galacticraft is a Forge mod and not compatible with Scavenger.
Will support of Galacticraft?
How can i enable Scavenger in my pvp arena?