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 May 17, 2013People are complaining that when they leave the server and come back they are losing all their xp. Does anyone else have this problem with this plugin? I don't know if this plugin is causing that but I suspect so as it tends to be the cause of things like this.
I also noticed it may have started happening with the new ProtocolLib that just came out so maybe its just a bug with that. I dunno. Just thought I would see if anyone else has this problem too.
-
View User Profile
-
Send Message
Posted May 17, 2013@Joxiscraft
The permissions are checked on the death event. On respawn the permissions are not checked. Answer: yes.
-
View User Profile
-
Send Message
Posted May 15, 2013@cnaude
Can u send me this version too please ? i have same problem...
-
View User Profile
-
Send Message
Posted May 14, 2013I mean lost fixed amount of exp after dead
-
View User Profile
-
Send Message
Posted May 14, 2013I have the problem like rsod. Players will lose their stuff if they didn't respawn immediately. and i have another question. How can i set exp lose after they died?
-
View User Profile
-
Send Message
Posted May 13, 2013@rsod
I've sent you a pm with a version that might be better.
-
View User Profile
-
Send Message
Posted May 12, 2013Seems like authenticator hook doesn't works properly
- AuthMe version 2.7.16
- Authenticator version 1.4
- Scavenger version 1.24c
Reproduce steps:
1) Die
2) Press "title screen"
3) login back
4) press "respawn"
5) log in with /login password
6) have inventory wiped
-
View User Profile
-
Send Message
Posted May 11, 2013@therennon
The blacklisted worlds option is only for worlds that you do not want scavenger on.
-
View User Profile
-
Send Message
Posted May 11, 2013Question,
"scavenger.drop.[ITEM NUMBER] - If SingleItemDrops is true then don't recover these items."
is possible inverse effect?
insert world in a blacklist and apply permission for recover a item specified at death?
-
View User Profile
-
Send Message
Posted May 9, 2013@DJTomek
Fixed in
v1.24av1.24c. ;)-
View User Profile
-
Send Message
Posted May 9, 2013@cnaude
Great, keep going at that good work :)
-
View User Profile
-
Send Message
Posted May 9, 2013@DJTomek
I have an idea how to fix this. I will get a fix out as soon as possible.
-
View User Profile
-
Send Message
Posted May 9, 2013I found a big problem with Scavenger.
I have five worlds in three groups:
1 - Blablabla, Mine and Event
2 - Creative
3 - Skyblock
Worlds in group have the same inventories.
If I die in for example Skyblock, I'm teleported to main world and it says, my items are saved but if I teleport back to the Skyblock, my items aren't there... If I die in main world (or Mine or Event) my items are successful recovered.
I was on Skyblock, unload version 1.23b, load back 1.19b (with plugin plugman) and my items was recovered on my movement (tested it just before few minutes).
Look at this and respond, please.
1.19b works great, but laggy.
Edit: I'm using Multiverse-core and Multiverse-inventories for world managing.
-
View User Profile
-
Send Message
Posted May 7, 2013Oh, stupid :/ I didn't see it..
Thx, now it's perfectly OK :)
-
View User Profile
-
Send Message
Posted May 7, 2013@DJTomek
v1.23b has the same fix. http://dev.bukkit.org/server-mods/scavenger/files/30-v1-23b/
-
View User Profile
-
Send Message
Posted May 7, 2013@ircopdd
1.23a? Where is this file avaiable? I have the same problem on my server, the similar examination with nolagg.
-
View User Profile
-
Send Message
Posted May 4, 2013@cnaude
thanks
1.23a is good work
tps 19.5 now
-
View User Profile
-
Send Message
Posted May 3, 2013@ircopdd
I have some ideas on how to improve performance. I'm going to remove the onMove event in favor of something much less intensive.
-
View User Profile
-
Send Message
Posted May 3, 2013@ircopdd
What are your other plugins? Also how many players do you have online when it gets laggy?
-
View User Profile
-
Send Message
Posted May 3, 2013Total duration: 1405.75 ms / 600 ticks
Average duration: 2.343 ms/tick
Selected event: PlayerMoveEvent[NORMAL]
Plugin: Scavenger
Location: class me.cnaude.plugin.Scavenger.ScavengerEventListenerOnline
use
v1.21f
v1.21g
very lag why?