Chest Protect
Chest Protect
Chest Protect is a protection and griefing deterrent plugin specifically for chests. It aims to be as non-intrusive as possible while also providing protection to your chests. This will not only protect your chests but avoid any kind of harm from coming to them. It will do the following:
- Protect your chests from being broken into
- Protect your chests from being broken. Period.
- Will deter griefers from attacking your chests as this will attack them back.
Notice: Version Checking
This plugin utilizes an external version checking system, which means that the following may occur:
- Connection to curseforge.com
- Plugin version compared against version on curseforge.com
- Downloading of the plugin from curseforge.com
- You can disable the check and/or automated download via the configuration of this plugin.
How does it work?
While chest protect is running, it will be notified whenever a player places a chest down and will automatically store the chest info and player's name. If someone tries to break the chest who has a different name it will stop them from breaking it.
Chest Protect also stops your chests from exploding, burning, or being destroyed by anyone other then you (Server operators are an exception)
Commands
Simplicity is key. So the commands that come with the plugin will be very simple.
- /protect. If you're looking at a chest, it will protect it for you.
- /protectadd <username> which can be used to add a friend to the protection.
- /protectrem <username> which removes someone from your protection.
- /protectinfo which shows you information about the protected chest you're looking at.
- /protectpublic which turns your private chest into a public one. (Other players can access it but not destroy it)
- /protectprivate which turns your public chest into a private one.
Tutorial
If you're a server owner, you can configure the amount of damage dealt to a suspected theif/griefer by modifying the config file, found in plugins/ChestProtect/config.yml
To protect your chest, simply place it down, if it's already on the ground, type /protect. Your chest will then become protected. To add friends to the chest, type /protectadd <username> and they will be allowed to access your chest. To remove people from your chest's protection, type /protectrem <username> and they won't be allowed to access your chest.
- You can watch a tutorial video here
Installation
Installation is simple, all you do is drag the .jar file into your plugins directory. a config file will be automatically generated.
Permissions
The permissions are as follows:
chestprotect.* - You can do everything, you can break and open anyones chests. chestprotect.canbreakprotectedchests - You can break protected chests, but not open them. chestprotect.canopenprotectedchests - You can open protected chests, but not break them. chestprotect.canopenprotectedworkbenches - You can open protected workbenches, but not break them. chestprotect.canbreakprotectedworkbenches - You can break protected workbenches, but not open them. chestprotect.canbreakprotectedfurnaces - You can break protected furnaces, but not open them. chestprotect.canopenprotectedfurnaces - You can open protected furnaces, but not break them.
This plugin will soon not work, as the UUIDs will take over, rather than playernames. Either the owner should update, or do not use this plugin. Thank you for your time!
@Fillbach
Having the same problem. Going to try what others suggested and switch to version 2.4
EDIT: 2.4 is automatically locking chests, even against the person who set it. Ditching this plugin entirely. When the dev fixes 2.5's errors, maybe I'll come back to this.
I have the same problem as VR1990... I had to delete the jar file, put the 2.4 version and delete all but the config file where I then again had to turn of the auto updater. Not cool bro -.-
I'm also unable to use permissions to override chest protection. Server is 1.7.2 using ChestProtect v2.5. Then there's the constant exceptions thrown in the console whenever somebody interacts with a protected chest.
@YatesyFourtySeven
i have the same issue but with the chestprotect.* command and all other overriding perms also when oped i cant open or destroy chests. i am using 1.7.2
i had to uninstall the errors where eating ram.
@Fillbach
Hi there Fillbach,
Chest Protect is not compatible with Craftbukkit 1.6.4. Chest Protect is only compatible for Craftbukkit 1.7.2 and up, Sorry for the inconvenience.
Regards, Yatesy
I am running craftbukkit 1.6.4
I keep getting this error over and over. Any suggestions?
2014-01-12 22:54:22 [SEVERE] Could not pass event PlayerInteractEvent to ChestProtect v2.5 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 org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:190) at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:160) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1008) at net.minecraft.server.v1_6_R3.Packet18ArmAnimation.handle(SourceFile:41) at net.minecraft.server.v1_6_R3.NetworkManager.b(NetworkManager.java:296) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:116) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at net.minecraft.server.v1_6_R3.DedicatedServerConnection.b(SourceFile:30) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:592) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:227) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:488) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:421) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at com.gmail.jordz98.MyBlockListener.onInventoryOpenEvent(MyBlockListener.java:106) at sun.reflect.GeneratedMethodAccessor31.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 16 more
@madforpancakes
Alright, I've made a ticket for his comment and I'm going to start an internal debugging for that command, we should be able to fix it soon.
I am having the same problem as FunyM, the protectadd function is broken and my server console is filled with exceptions.
Hi, after install in logs found error and not working protectadd command, before last update all working fine:
Could not pass event PlayerInteractEvent to ChestProtect v2.5 org.bukkit.event.EventException at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:191) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callPlayerInteractEvent(CraftEventFactory.java:161) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PlayerConnection.a(PlayerConnection.java:978) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInArmAnimation.a(SourceFile:43) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.PacketPlayInArmAnimation.handle(SourceFile:9) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.NetworkManager.a(NetworkManager.java:146) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ServerConnection.c(SourceFile:134) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.u(MinecraftServer.java:655) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.DedicatedServer.u(DedicatedServer.java:250) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.t(MinecraftServer.java:545) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.MinecraftServer.run(MinecraftServer.java:457) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] at net.minecraft.server.v1_7_R1.ThreadServerApplication.run(SourceFile:617) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] Caused by: java.lang.NullPointerException at com.gmail.jordz98.MyBlockListener.onInventoryOpenEvent(MyBlockListener.java:106) [?:?] at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source) [?:?] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [?:1.7.0_45] at java.lang.reflect.Method.invoke(Method.java:606) [?:1.7.0_45] at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) [craftbukkit-beta.jar:git-Bukkit-1.7.2-R0.2-b2974jnks] ... 15 more
@Bester111
Thanks for the heads up, I'll look into the name of that plugin and be sure to add it as a non-compatible plugin in the description. :)
ok forget last post lol. took all the pluggins out and then inserted one by one till i found the problem. one pluggin ??? rcp dont remember that one was interferring so deleted it and all works fine so far thanks for a great pluggin
I will get this (Over LWC) if you add door and/or sign support. This seems so much simpler but im not sure about those permission nodes. Lol
if there are new features that you want to see in this plugin, comment below. Currently Added Furnace support.
Maybe consider applying it to furnaces as well. Just an idea.
@codedonut
Please submit a ticket (By going into the ticket section of the page) with as much information as possible and, if possible, a log file.
@jordz0005
it allows no one to access it. it kills whomever is trying to access it/break it, even the owner of the chest.
@codedonut
how do you mean, does it allow them to access the chest and destroy it or just destroy it or neither of the two?
everytime one of my players protects a chest, they lose access to it and chestprotect blocks them out.
@icecoldpanda
Version 2.1 is officially released now! ^_^