Filled Hats GUI

Discussion in 'Archived: Plugin Requests' started by Famous Guy, Oct 17, 2013.

  1. Offline

    timtower Administrator Administrator Moderator

  2. Offline

    toxictroop

    Last edited by a moderator: Jun 4, 2016
  3. Offline

    Goblom

    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)
     
  4. Offline

    toxictroop

    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.
     
    Last edited by a moderator: Jun 4, 2016
  5. Offline

    Goblom

    toxictroop If you do not want to give the item at all on login i can add something for that...
     
  6. Offline

    toxictroop

    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
     
  7. Offline

    Goblom

    toxictroop That SHOULD be fixed now. If not ill have to take a look at it tomorrow.
     
  8. Offline

    timtower Administrator Administrator Moderator

  9. Offline

    Famous Guy

    Goblom Hmm.. I can't seem to right click the block you get when you log on. But /HatsGui works fine :)
     
  10. Offline

    toxictroop

    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
     
  11. Offline

    Goblom

    Famous Guy do you get an error when you click on the item ?
     
  12. Offline

    toxictroop

    Did you fix the issue above?
     
  13. Offline

    Famous Guy

    Goblom Can you make it when you RIGHT click the item in the config in the air it opens the GUI?
     
    Yebol likes this.
  14. Offline

    toxictroop

    I hope you manage to fix the bug where you can place the heads on the ground.. or even keep duping them into inventory..
     
  15. Offline

    toxictroop

    Also no dropping the hat on death.
     
  16. Offline

    timtower Administrator Administrator Moderator

  17. Offline

    Goblom

    timtower likes this.
  18. Offline

    dougallol

    Hey have this plugin. For my own server. Hehe

    my own custom hats plugin with gui x
     
  19. Offline

    toxictroop

    If the problems I stated above are fixed someone please compile ^_^
     
  20. Offline

    timtower Administrator Administrator Moderator

    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
     
  21. Offline

    Gorillasmash

    timtower When I right click on the wool it does not open the GUI. Do I need another plugin in order to get it?
     
  22. Offline

    timtower Administrator Administrator Moderator

    It is about clicking the item when it is in your inventory, make sure that you have the permissions though
     
  23. Offline

    Gorillasmash

    timtower Yeah I am clicking it when its in the inventory and I am op and it wont work.
     
  24. Offline

    timtower Administrator Administrator Moderator

    OP won't work, permissions are not registered, and there is no check if the player is OP
     
  25. Offline

    Gorillasmash

    timtower Ok. I just have no idea what the permissions are.
     
  26. Offline

    timtower Administrator Administrator Moderator

  27. Offline

    Gorillasmash

    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?
     
  28. Offline

    timtower Administrator Administrator Moderator

    Gorillasmash There is also a command, check the pages for it
     
  29. Offline

    Goblom

  30. Offline

    timtower Administrator Administrator Moderator

    That is why I do it for you :p
     

Share This Page