Plugin category: AdminHelp Suggested name: ViewChest What I want: Hi, I am looking for a plugin that would make a chest that no one could put/take items in/out of the chest. The chest can not be broken either Ideas for commands: /viewchest (alias:"/vc") will display a list of help commands. /viewchest set will lock the chest so no one can modify it /viewchest modify opens the chest so you can modify it Ideas for permissions: viewchest.viewchest (/viewchest) viewchest.set (/viewchest set) viewchest.modify (/viewchest modify) viewchest.bypass (Bypasses the plugin) viewchest.* (All permissions) When I'd like it by: When ever possible!
I'm pretty sure you cant open it with the lwc protection, he wants players to be able to open it, look at the inventory, but NOT be able to put items in it or out of it... I think I'm gonna work on this To keep it efficient: is it OK if I change the name of the chest? In like: protected chest, instead of chest? Otherwise I'll have to store hundreds of coords and such this should make it a little bit more compact!
https://www.dropbox.com/s/iqt1pqqv204qanq/viewchest.jar The changing of the name of the inventory/chest wasnt possible... so I just stored the coords in a config (too lazy to create more files :3 might do that in the future!) All works, perms are all the same as you asked for... if you found any bugs, just tell me here
Not allowed, also you can just rename a chest and when its placed it takes over that name as the name of the inventory
Yes, I know, but you can't rename an allready placed chest (actually renaming the inventory) This wouldve been quite a neat way to tell which chest is protected, and which is not... Now you can lock & unlock them, without having to place a new chest... & I shall remove that from my post then, sorry!
My console was spammed with this: Code: 25.08 05:52:22 [Server] INFO ... 13 more 25.08 05:52:22 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60] 25.08 05:52:22 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60] 25.08 05:52:22 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) ~[?:?] 25.08 05:52:22 [Server] INFO at me.simgar98.viewchest.main.onChestClick(main.java:32) ~[?:?] 25.08 05:52:22 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getWorld(CraftServer.java:1119) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1431) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:22 [Server] INFO org.bukkit.event.EventException 25.08 05:52:22 [Server] ERROR Could not pass event InventoryClickEvent to ViewChest v1.0 25.08 05:52:21 [Server] INFO ... 13 more 25.08 05:52:21 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60] 25.08 05:52:21 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60] 25.08 05:52:21 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) ~[?:?] 25.08 05:52:21 [Server] INFO at me.simgar98.viewchest.main.onChestClick(main.java:32) ~[?:?] 25.08 05:52:21 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getWorld(CraftServer.java:1119) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1431) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:21 [Server] INFO org.bukkit.event.EventException 25.08 05:52:21 [Server] ERROR Could not pass event InventoryClickEvent to ViewChest v1.0 25.08 05:52:20 [Server] INFO Info: You can still donate, http://store.duffcraftsmp.com/ Support the server please!!! 25.08 05:52:20 [Server] INFO ... 13 more 25.08 05:52:20 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60] 25.08 05:52:20 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60] 25.08 05:52:20 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) ~[?:?] 25.08 05:52:20 [Server] INFO at me.simgar98.viewchest.main.onChestClick(main.java:32) ~[?:?] 25.08 05:52:20 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getWorld(CraftServer.java:1119) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1431) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:20 [Server] INFO org.bukkit.event.EventException 25.08 05:52:20 [Server] ERROR Could not pass event InventoryClickEvent to ViewChest v1.0 25.08 05:52:17 [Server] INFO ... 13 more 25.08 05:52:17 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60] 25.08 05:52:17 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60] 25.08 05:52:17 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) ~[?:?] 25.08 05:52:17 [Server] INFO at me.simgar98.viewchest.main.onChestClick(main.java:32) ~[?:?] 25.08 05:52:17 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getWorld(CraftServer.java:1119) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.handle(SourceFile:10) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.PacketPlayInWindowClick.a(SourceFile:32) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at net.minecraft.server.v1_7_R4.PlayerConnection.a(PlayerConnection.java:1431) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:487) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:502) [spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:299) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:17 [Server] INFO org.bukkit.event.EventException 25.08 05:52:17 [Server] ERROR Could not pass event InventoryClickEvent to ViewChest v1.0 25.08 05:52:15 [Server] INFO ... 13 more 25.08 05:52:15 [Server] INFO at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:296) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at java.lang.reflect.Method.invoke(Method.java:606) ~[?:1.7.0_60] 25.08 05:52:15 [Server] INFO at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.7.0_60] 25.08 05:52:15 [Server] INFO at sun.reflect.GeneratedMethodAccessor108.invoke(Unknown Source) ~[?:?] 25.08 05:52:15 [Server] INFO at me.simgar98.viewchest.main.onChestClick(main.java:32) ~[?:?] 25.08 05:52:15 [Server] INFO at org.bukkit.craftbukkit.v1_7_R4.CraftServer.getWorld(CraftServer.java:1119) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at org.apache.commons.lang.Validate.notNull(Validate.java:192) ~[spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO Caused by: java.lang.IllegalArgumentException: Name cannot be null 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.ThreadServerApplication.run(SourceFile:628) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.run(MinecraftServer.java:490) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.u(MinecraftServer.java:584) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.DedicatedServer.v(DedicatedServer.java:289) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.MinecraftServer.v(MinecraftServer.java:734) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.ServerConnection.c(ServerConnection.java:81) [spigot.jar:git-Spigot-1595] 25.08 05:52:15 [Server] INFO at net.minecraft.server.v1_7_R4.NetworkManager.a(NetworkManager.java:184) [spigot.jar:git-Spigot-1595]
Jduffygames I thought you stopped using it? Anyways, I know about that error, fixed it a while back, also, I guess you dont have chests on the same x coord? It was completely broken Ill give you the new version soon EDIT: https://www.dropbox.com/s/iqt1pqqv204qanq/viewchest.jar?dl=0 Here ya go