Ok thanks np testing. command now works thanks alot!, how would I remove the starting item? EDIT: oh give on login. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
toxictroop If give on login is true then only only players with permission "Hats.Use" will get the hat on login... if false everyone gets it... (I know kinda confusing)
Wipe your config file! You prob have an error. Make sure item names are all in CAPS Oh ok. EDIT by Moderator: merged posts, please use the edit button instead of double posting.
Throws errors if you click out of the box: 23:22:15 [SEVERE] Could not pass event InventoryClickEvent to Hats GUI v1.0 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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1402) at net.minecraft.server.v1_6_R3.Packet102WindowClick.handle(SourceFile:31) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at org.goblom.hatsgui.PlayerListener.guiBlock(PlayerListener.java:38) at org.goblom.hatsgui.PlayerListener.onItemClick(PlayerListener.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more
Ok some issues, you should disable being able to move the item out of the head slot, I was able to move the head item and place it on the ground, and make a hat remove command! 2013-10-25 20:30:55 [SEVERE] Could not pass event InventoryClickEvent to Hats GUI v1.0 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.TimedRegisteredListener.callEvent(TimedRegisteredListener.java:30) at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:478) at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:463) at net.minecraft.server.v1_6_R3.PlayerConnection.a(PlayerConnection.java:1402) at net.minecraft.server.v1_6_R3.Packet102WindowClick.handle(SourceFile:31) at org.spigotmc.netty.NettyNetworkManager.b(NettyNetworkManager.java:230) at net.minecraft.server.v1_6_R3.PlayerConnection.e(PlayerConnection.java:117) at net.minecraft.server.v1_6_R3.ServerConnection.b(SourceFile:37) at org.spigotmc.netty.NettyServerConnection.b(NettyServerConnection.java:132) at net.minecraft.server.v1_6_R3.MinecraftServer.t(MinecraftServer.java:594) at net.minecraft.server.v1_6_R3.DedicatedServer.t(DedicatedServer.java:240) at net.minecraft.server.v1_6_R3.MinecraftServer.s(MinecraftServer.java:483) at net.minecraft.server.v1_6_R3.MinecraftServer.run(MinecraftServer.java:415) at net.minecraft.server.v1_6_R3.ThreadServerApplication.run(SourceFile:583) Caused by: java.lang.NullPointerException at org.goblom.hatsgui.PlayerListener.guiBlock(PlayerListener.java:38) at org.goblom.hatsgui.PlayerListener.onItemClick(PlayerListener.java:58) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:425) ... 15 more
I hope you manage to fix the bug where you can place the heads on the ground.. or even keep duping them into inventory..
erck magerd Please send me a pm with stuff you want. Ill get around to it by the end of the week. Pretty busy right now with my GUI Manager http://dev.bukkit.org/bukkit-plugins/gui-manager/
toxictroop, Famous Guy, Goblom Post your wanted things / bugs ( preferably in the same post ) I will take the code and make some pull requests with the modifications
timtower When I right click on the wool it does not open the GUI. Do I need another plugin in order to get it?
It is about clicking the item when it is in your inventory, make sure that you have the permissions though
timtower Works fine, but can you make it so they don't have to open there inventory to get it just simple use your right click on it?
Gorillasmash timtower Yea... I don't register the permissions in the plugin.yml (I have a problem) timtower #Merged