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 3, 2013@Maik1991
The next time you get that error please send me a copy of the inv1.ser file. Copy the file before shutting down the server. You can PM with the file location.
-
View User Profile
-
Send Message
Posted May 3, 2013Hi I have some problems with the plugin .. At server startup display this in the Console or server.log. Would be nice if you could help.
Your text to link here...
-
View User Profile
-
Send Message
Posted May 2, 2013@dfdgsdfg
Fixed in v1.21g.
-
View User Profile
-
Send Message
Posted Apr 29, 2013some error here.
2013-04-30 11:20:03 [SEVERE] Could not pass event PlayerMoveEvent to Scavenger v1.21f org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462) at net.minecraft.server.v1_5_R2.PlayerConnection.a(PlayerConnection.java:217) at net.minecraft.server.v1_5_R2.Packet10Flying.handle(SourceFile:136) at net.minecraft.server.v1_5_R2.NetworkManager.b(NetworkManager.java:292) at net.minecraft.server.v1_5_R2.PlayerConnection.d(PlayerConnection.java:110) at net.minecraft.server.v1_5_R2.ServerConnection.b(SourceFile:35) at net.minecraft.server.v1_5_R2.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_5_R2.MinecraftServer.r(MinecraftServer.java:580) at net.minecraft.server.v1_5_R2.DedicatedServer.r(DedicatedServer.java:225) at net.minecraft.server.v1_5_R2.MinecraftServer.q(MinecraftServer.java:476) at net.minecraft.server.v1_5_R2.MinecraftServer.run(MinecraftServer.java:409) at net.minecraft.server.v1_5_R2.ThreadServerApplication.run(SourceFile:573) Caused by: java.lang.NullPointerException at me.cnaude.plugin.Scavenger.ScavengerEventListenerOffline.isScavengeAllowed(ScavengerEventListenerOffline.java:52) at me.cnaude.plugin.Scavenger.ScavengerEventListenerOffline.onPlayerMove(ScavengerEventListenerOffline.java:45) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:601) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 14 moremy system
```
WorldGuard Configuration Report
Generated 2013-04-28 17:26 +0900
Version: 5.7.3
Server Information
Java : Oracle Corporation 1.7.0_17 (http://java.oracle.com/)
Operating system : Mac OS X 10.8.3 (x86_64)
Available processors: 8
Free memory : 135 MB
Max memory : 9102 MB
Total memory : 487 MB
Server ID : unnamed
Server name : Server
Implementation : git-Bukkit-1.5.1-R0.1-21-g49b0699-b2754jnks (MC: 1.5.1)
Player count : 8/50
Plugins (41)
WorldEdit : 5.5.5
NoCheatPlus : 3.9.0-RC-b488
CommandBook : 536-68f5e78
SimpleClans2 : 1.0.1-SNAPSHOT-b534
Multiverse-Core : 2.5-b641
PermissionsEx : 1.19.5
Gringotts : 1.5.1a
Prism : 1.6
WorldGuard : 5.7.3
Whitelist : 2.7
RemoteToolkitPlugin: R10_A14.5
OddItem : 0.9.5
dynmap : 1.6-646
Dynmap-WorldGuard : 0.40
SurvivalGames : B 0.4.11
EpicBossRecoded : 1.3.2
AuthDB : 2.3.8-SNAPSHOT-b312
Warrant : 4.0.3
Lockette : 1.7.11
SimpleClansChat : 1.0.2-SNAPSHOT-b534
ProtocolLib : 2.4.1
Modifyworld : 1.19.4
Stats : jenkins-Stats-299
PlayerFreeze : 1.5
WorldBorder : 1.7.2
Multiverse-Portals : 2.5-b657
VanishNoPacket : 3.16.1
Vault : 1.2.25-b320
DynTrack : 2.0.327
Jail : 2.3.0
RSP : 1.3.1
CraftIRC : 3.9.3
PreciousStones : 9.5.8-SNAPSHOT
pvparena : 1.0.0.44
LimitedCreative : 2.0-SNAPSHOT-73285de3c7
MobArena : 0.94.4.96
WebPortal : 0.6.5.1-SNAPSHOT
MailBox : 2.7
QuickShop : 4.3
Trade : 0.5.5b
LocketteAddon : 2.5
```
-
View User Profile
-
Send Message
Posted Apr 21, 2013@cnaude
One thing maybe the maps from the Courier plugin have a high level unbreaking enchantments on them.
Also, I noticed they are able to add more enchants to items with books which I don't think they could before. For example this one sword this person has has Smite V, Flame I, Punch II, Power V, Looting III, and Fire Aspect II
-
View User Profile
-
Send Message
Posted Apr 20, 2013@nelson2wsx
Please post your startup log to pastebin.
-
View User Profile
-
Send Message
Posted Apr 20, 2013@ryvix
Are you running any plugins that create items with illegal enchants?
-
View User Profile
-
Send Message
Posted Apr 20, 2013People are losing their invs when they log out when they are dead still for some reason. But I thought it was fixed before. Maybe it doesn't happen to everyone, I'm not sure. Maybe it is somehow related to this other error while disabling Scavenger because I noticed I have that as well.
-
View User Profile
-
Send Message
Posted Apr 19, 2013@cnaude
OK
-
View User Profile
-
Send Message
Posted Apr 19, 2013@nelson2wsx
The next version will catch this exception and print out details about the item. Something about the itemstack caused the deserializer to fail.
-
View User Profile
-
Send Message
Posted Apr 19, 2013@cnaude
-
View User Profile
-
Send Message
Posted Apr 18, 2013@nelson2wsx
What version of ProtocolLib and CraftBukkit are you running?
-
View User Profile
-
Send Message
Posted Apr 18, 2013-
View User Profile
-
Send Message
Posted Apr 16, 2013@cnaude
Lol derp. Thanks.
-
View User Profile
-
Send Message
Posted Apr 16, 2013@GamersSynergy
Yes. See the last option: https://raw.github.com/cnaude/Scavenger/master/src/config.yml
-
View User Profile
-
Send Message
Posted Apr 16, 2013Is it at all possible to disable the plugin for certain worlds?
-
View User Profile
-
Send Message
Posted Apr 16, 2013@CoasterCrazy
I'm asking the dev if there is an API I can use.
-
View User Profile
-
Send Message
Posted Apr 15, 2013I don't suppose you could hook it up somehow with http://dev.bukkit.org/server-mods/minigames/
I've been running your plugin and the one linked above for a while now but there's like a hiccupe as I ran without your plugin for a week and people's inventories were fine, but adding yours, people usually end up with the minigames items after having finished the game or when they join the server again. Since both plugins restore items on death, the minigame one after the game ends and yours whenever a player dies, I think there's something going on that gets mixed up and causes that/ Maybe you can look into it? :) btw, thanks so much for integrating with WorldInventoriesm its a lag saver! xD
-
View User Profile
-
Send Message
Posted Apr 8, 2013@smallpen
Show that error message to the author of LegendaryMessages. It's a bug in that plugin.
-
View User Profile
-
Send Message
Posted Apr 8, 2013@cnaude
On my server , sometimes will happen player's inventory no recovery when they be killed by mob , and lost connection. When they reconnect to server , their inventory still don't recovery .
I think maybe another plugin happen error , and cause your plugin work incorrect. LegendaryMessages plugin maybe effect your plugin , this is his Error !!