Filled Hats GUI

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

  1. Online

    timtower Moderator Moderator

    Goblom Read again XD Exactly what I said
    Famous Guy Well, you get a modified red wool block when you join the server ( at least, it should be )
    That block can you use to open the GUI
     
    Goblom likes this.
  2. Offline

    Goblom

    :D Plugin Filled!
     
  3. Offline

    Famous Guy

    I'm at school rn so I need to test it and if it works than its filled c:
     
  4. Offline

    Goblom

    Famous Guy if it was default it would be annoying because every time that someone would want to move a piece of red wool around in the inventory the hats gui would pop up...

    If you want me to write another command into the plugin i can, this being /getgui or /getguiblock and all that does is place the customized wool (or other block) into your inventory

    Famous Guy From my experience with Inventory GUIs & custom items the plugin should work perfectly... With my experience with IconMenu im not sure what to expect (so feedback would be great when you get around to testing it)
     
  5. Offline

    Famous Guy

    When I do /hatgui it says "hatgui" in the chat. And no one gets anything when they log on and they have the perm. :c HElp
     
  6. Offline

    Goblom

    Famous Guy Ill check what the problem is

    Edit: Fixed the command returning "hatsgui"
     
  7. Online

    timtower Moderator Moderator

    You are returning false
     
  8. Offline

    Goblom

    timtower already fixed that. First thing i checked

    Is there an error in console when a player joins ?
     
    timtower likes this.
  9. Offline

    toxictroop

    Having trouble compiling this going by the instructions, im using eclipse and im a noob ;)

    Any advise or a compiled version please if anyone will be helpful enough :3
     
  10. Offline

    Famous Guy

  11. Offline

    Goblom

    toxictroop It uses maven.

    Famous Guy #Facepalm... I registered the command in the plugin.yml incorrectly. You just need to update your local source. or open the plugin up and change hatgui to hatsgui

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  12. Offline

    Famous Guy

    How? :s
     
  13. Offline

    Goblom

    Famous Guy likes this.
  14. Offline

    Famous Guy

    Even when I do /hatgui I get I get this http://prntscr.com/1zgr55
     
  15. Offline

    Goblom

    Famous Guy Thats because the command is not /hatgui its /hatsgui... (facepalm)


    I registered it wrong in the plugins plugin.yml but the repo already has it fixed you just need a new jar or open your current jar and edit the plugin.yml to reflect the changes.
     
  16. Offline

    Famous Guy

    just tell him to send me a new jar :c
     
  17. Online

    timtower Moderator Moderator

  18. Offline

    Famous Guy

  19. Online

    timtower Moderator Moderator

    I just compile it, I am not the original developer. Goblom
     
  20. Offline

    Famous Guy

    Goblom How do I change the name? :s http://prntscr.com/1zgw1c And when I right click the block it doesn't open the GUI, But when I do /hatsgui it does.

    @Goblom but when I right click an item on the GUI it doesn't wear it.

    timtower How do I import a source code of a plugin into Eclipse?

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  21. Online

    timtower Moderator Moderator

    Famous Guy Google it, got to go, also: Try to use the edit button next time and wait for us ( developers ) to fix the problems you are having
     
  22. Offline

    Goblom

    Famous Guy im sorry, rule #6 i will not help you compile the plugin or edit the plugin...

    If you find a bug tell me i will fix it. If you just say it doesn't work then that doesn't help me fix the problem. Also, expect problems. wrote plugin in an hour.

    #ImDoneHere. If you find a bug please tell me how to reproduce the bug & if found error please post your server.log
     
    timtower likes this.
  23. Offline

    Famous Guy

    "How do I change the name? http://prntscr.com/1zgw1c And when I right click the block it doesn't open the GUI, But when I do /hatsgui it does. But when I click the block it doesn't place the item on your head."
     
  24. Online

    timtower Moderator Moderator

  25. Offline

    Famous Guy

  26. Online

    timtower Moderator Moderator

    Then you will lose support from this. BTW: That version isn't 100% correct with names yet
    EDIT: https://www.dropbox.com/s/u26c3nsp92rqf7d/HatsGUI.jar
    Hope it is now
     
    Goblom likes this.
  27. Offline

    toxictroop

    22:39:12 [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.IllegalArgumentException: No enum constant org.bukkit.Material.Items.obsidian.Material
    at java.lang.Enum.valueOf(Unknown Source)
    at org.bukkit.Material.valueOf(Material.java:64)
    at org.goblom.hatsgui.HatsGUI.getHat(HatsGUI.java:115)
    at org.goblom.hatsgui.HatsGUI.access$0(HatsGUI.java:108)
    at org.goblom.hatsgui.HatsGUI$1.onOptionClick(HatsGUI.java:79)
    at org.goblom.hatsgui.IconMenu.onInventoryClick(IconMenu.java:75)
    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)
     
  28. Online

    timtower Moderator Moderator

  29. Offline

    toxictroop


    Open inventory and click the wool, but there is an issue on the gui once opened from clicking the wool, the hat can be moved around and doesn't register a command to put onto head.

    oh reset it :3

    oops..

    EDIT: nope still the same error.

    22:45:02 [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.IllegalArgumentException: No enum constant org.bukkit.Material.Items.obsidian.Material
    at java.lang.Enum.valueOf(Unknown Source)
    at org.bukkit.Material.valueOf(Material.java:64)
    at org.goblom.hatsgui.HatsGUI.getHat(HatsGUI.java:115)
    at org.goblom.hatsgui.HatsGUI.access$0(HatsGUI.java:108)
    at org.goblom.hatsgui.HatsGUI$1.onOptionClick(HatsGUI.java:79)
    at org.goblom.hatsgui.IconMenu.onInventoryClick(IconMenu.java:75)
    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

    EDIT by Moderator: merged posts, please use the edit button instead of double posting.
     
    Last edited by a moderator: Jun 4, 2016
  30. Offline

    Goblom

    toxictroop Looking into it now

    Edit: Should be fixed on the repo. Looks like timtower is gone for now though :/
     
    timtower likes this.

Share This Page