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 Jun 18, 2013Hello!
When a player die in a blacklisted world, the message is "the inventory has been saved" whereas should be "The inventory has been lost" :)
-
View User Profile
-
Send Message
Posted Jun 17, 2013@cnaude
The server is running Spigot in offline mode behind bungee. It does seem to keep on land and everywhere. It seems very good other than that so far. However it doesn't seem to happen all the time either. Only occasionally someone will report losing it from falling into the void in the end. I can make myself a normal player without op and jump off and my inv is kept just fine. Otherwise I probably would have mentioned it sooner.
-
View User Profile
-
Send Message
Posted Jun 17, 2013@rsod
Yes I am still working on this.
-
View User Profile
-
Send Message
Posted Jun 17, 2013@cnaude
hey any chance that you can fix multiworld problem described in my pm?
-
View User Profile
-
Send Message
Posted Jun 16, 2013@ryvix
Does this happen in online or offline mode? Do normal deaths in the end save inventories correctly?
-
View User Profile
-
Send Message
Posted Jun 16, 2013@dfdgsdfg
Do you have players that play online mode and offline mode? Please tell me the exact steps needed to reproduce this issue.
-
View User Profile
-
Send Message
Posted Jun 16, 2013@dfdgsdfg
looks like developer is busy with something else, we all have to wait
-
View User Profile
-
Send Message
Posted Jun 15, 2013People seem to be losing their inventories if they login in offline mode with authme and Authenticator.
-
View User Profile
-
Send Message
Posted Jun 15, 2013People seem to be losing their inventories if they fall into the void in the end world.
-
View User Profile
-
Send Message
Posted Jun 12, 2013Hello!
Can you support this please ? http://dev.bukkit.org/bukkit-mods/war/
Thanks for this very nice plugin :)
-
View User Profile
-
Send Message
Posted Jun 9, 2013Please support Survival Games.
Also thanks for nice plugin.
-
View User Profile
-
Send Message
Posted Jun 8, 2013Could you enable an option in config which allows restores to be queued but require an admin command to approve them? This way, inventories can be recovered at an admin's discretion but work like a vanilla death by default.
I like this plugin! Well done :)
-
View User Profile
-
Send Message
Posted May 22, 2013@cnaude
Surely I would like to, send me a link
-
View User Profile
-
Send Message
Posted May 21, 2013@rsod
I have some ideas if you're willing to test a few builds.
-
View User Profile
-
Send Message
Posted May 21, 2013@Rog360
Just install limited creative and then use world guard to make the default gamemode adventure :D
-
View User Profile
-
Send Message
Posted May 21, 2013Can you add two commands for in game use. I would love to be able to save and restore inventory with commands. What I want to do is save inventory when entering PVP area [No Plugin] and restore on death or when leaving PVP area. I'll use the commands with serversigns. Thanks for the great plugin... :)
-
View User Profile
-
Send Message
Posted May 19, 2013@cnaude
To avoid any possibility of affecting by another plugins I created fresh server using Spigot build 866 with plugins:
Scavenger version 1.24d
ProtocolLib version 2.4.3
AuthMe version 2.7.16
Authenticator version 1.5
PermissionsEx version 1.19.5
Configuration file is default except this option:
OfflineMode: true
What exactly happening: after player dying, his inventory not auto-restoring. I tried different actions, but I found only one way that works: disconnect from server, connect and teleport somewhere. Only after this inventory will be restored.
-
View User Profile
-
Send Message
Posted May 18, 2013@rsod
What does your Scavenger/config.yml look like? What does your plugin list look like?
-
View User Profile
-
Send Message
Posted May 18, 2013For some reason after last update restorations stucking, they showing in /scvrlist, but they not processing, people not getting items back. Happening after you got rid of onmove event. I got inventory restore on teleport, but maybe best way is add task to scheduler like check restorations every 2-3 seconds?
-
View User Profile
-
Send Message
Posted May 17, 2013@ryvix
ProtocolLib is only used for saving the inventories to disk when the server is stopped. If a player just logs off then Scavenger should not in any way remove their xp.