WorldGuard Keep Inventory Flags
WorldGuard Keep Inventory Flags
"WorldGuard" extension to allow a player to keep his inventory and/or level if he dies in a region.
How to use this?
This plugin adds two new region flags to worldguard: "keep-inventory" and "keep-level"
If you die in a region with the "keep-inventory" flag set to "ALLOW" you will keep your inventory after death.
If you die in a region with the "keep-level" flag set to "ALLOW" you will keep your level.
Both flags will override allow of parent regions if they are set to "DENY".
So simply use the usual WorldGuard region command, like this:
/region flag <region> keep-inventory deny
to deny keeping the inventory, or:
/region flag <region> keep-inventory allow
to allow it, or:
/region flag <region> keep-inventory
to set the flag back to default value (deny).
The keep-level flag works the same way.
Permissions
- none yet
Dependencies
The plugin requires the latest WorldGuard Custom Flags.
Click here for some other plugins using WorldGuard Custom Flags.
Problems ?
If you have problems with this plugin read the F.A.Q.. If this did not help you, you can receive help here.
Okay, Guys i Found Out How To Do This In 2022, You Need The ExtraFlags add-on for worldguard
please can we have this updated for 1.17.1
In reply to darkhabits123:
yes!
please update for 1.17.1, its not working :(
I installed this on my 1.7.10 modded server but although the flag sets it doesn't work. as Openblocks is installed a grave drops and was kinda hoping this would stop that happening for pvp arenas and minigames but it hasn't. Is there a way to do this with this plugin?
Does this work for 1.6.4?
Update please!(
Please update to 1.10 it don't work anymore ;( It is a nice plugin and helpfull.
Error log: 24.07 12:19:59 [Multicraft] Skipped 3 lines due to rate limit (30/s) 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.DedicatedServer.D(DedicatedServer.java:400) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.MinecraftServer.D(MinecraftServer.java:732) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.SystemUtils.a(SourceFile:45) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_72-internal] 24.07 12:19:57 [Server] INFO at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_72-internal] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnectionUtils$1.run(SourceFile:13) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:1) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.PacketPlayInChat.a(PacketPlayInChat.java:45) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.a(PlayerConnection.java:1186) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at net.minecraft.server.v1_10_R1.PlayerConnection.handleCommand(PlayerConnection.java:1351) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.craftbukkit.v1_10_R1.CraftServer.dispatchCommand(CraftServer.java:646) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.plugin.SimplePluginManager.enablePlugin(SimplePluginManager.java:405) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader.enablePlugin(JavaPluginLoader.java:340) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at org.bukkit.plugin.java.JavaPlugin.setEnabled(JavaPlugin.java:292) [custom.jar:git-Spigot-078e2f8-9ff3d7f] 24.07 12:19:57 [Server] INFO at com.mewin.WGKeepInvFlags.WGKeepInventoryFlagsPlugin.onEnable(WGKeepInventoryFlagsPlugin.java:73) [?:?] 24.07 12:19:57 [Server] INFO at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.addCustomFlag(WGCustomFlagsPlugin.java:273) [?:?] 24.07 12:19:57 [Server] INFO at com.mewin.WGCustomFlags.FlagManager.addCustomFlag(FlagManager.java:79) [?:?] 24.07 12:19:57 [Server] INFO at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadAllWorlds(WGCustomFlagsPlugin.java:208) [?:?] 24.07 12:19:57 [Server] INFO at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.loadFlagsForWorld(WGCustomFlagsPlugin.java:220) [?:?] 24.07 12:19:57 [Server] INFO at com.mewin.WGCustomFlags.WGCustomFlagsPlugin.getSaveHandler(WGCustomFlagsPlugin.java:296) [?:?] 24.07 12:19:57 [Server] INFO java.lang.NullPointerException 24.07 12:19:57 [Server] ERROR Error occurred while enabling WGKeepInventoryFlags v0.3.1 (Is it up to date?) 24.07 12:19:57 [Server] INFO Added custom flag "keep-level" to WorldGuard. 24.07 12:19:57 [Server] INFO Enabling WGKeepInventoryFlags v0.3.1
This plugin literally is the one-click solution for my safe pvp zones. Dayum, please update it to 1.8.3 or higher, it makes us server owners very happy. XD Or release the sourcecode to make us programmers happy?
Really cool that someone added this permission. Hopefully this works how I hope to do it, so thanks for the add-on. :)
Hello der_mewin,
Could you please update this plugin for 1.8.6? It seems to break with the new worldguard version.
Kind regards
Matthew
I just have to say, I love all of your plugins! You make WorldGuard 1000x more useful to me.
Thank you! <3
I would like to see source code.
pls update to 1.7.9 it crashes 4 me :( its such a nice plugin
@fatdog66
I join the warning. Users of my server are losing their inventory and did not know why.
Caution ! If an player die in an region flaged "keep-inventory allow" and lost connection or logout, he lost all there inventory and level. Please fix this bug.
Attention! Si un joueur meurt dans une zone flagué "keep-inventory allow" et qu'il perd sa connexion ou déconnecte, il perdra tout son inventaire et ses XP. SVP fixez ce bug.
Getting this error, however plugin is working http://pastebin.com/Kjq4qzMD
Will this be updated for 1.7.2?
@alek123222
Yes alek, I've experienced that too. der_mewin sadly can't reproduce that and as a consequence can't do anything. At least that was the case for my problem.
@der_mewin
Sorry. I usually give out more detailed information, but I'm not using the keep inventory flags anymore so I cannot elaborate on the problem.
Is anyone else getting this problem when sometimes you still lose the items, its about 1 in 30 chance?