Double GUI Glitch?

Discussion in 'Plugin Development' started by SkyLegion, Jun 8, 2014.

Thread Status:
Not open for further replies.
  1. Offline

    SkyLegion

    Hi,

    I am currently making a plugin that lets you click a gui to teleport you places. It goes as follows.
    Inventory - contains a compass -> right click
    Open new gui - snowball - > open paintball
    Open new gui - eye of ender - > teleport to paintball

    The problem is using the public void onInventoryClick(InventoryClickEvent event), it won't detect me clicking an item when i open the second gui with the eye of ender in it, but it will with the snowball. However if i Use a command to immediately open the eye of ender gui, it will run the command as it should. Is there some reset command I need to test for another gui click after already detecting one gui click?

    Thanks-
    xSkyLegion
     
  2. Offline

    es359


    Can you please show us your code?? SkyLegion
     
  3. Offline

    monkeymanboy

    Might be a letter off for the name or something on the version you create inside the menu if that is how you are checking what the inventory is
     
  4. Offline

    SkyLegion

    http://pastebin.com/t36fGpmJ

    1. if (label.equalsIgnoreCase("openlast")){
    2. openGUIpb(p);
    3. }
    4. that straight up opens the second gui

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

    davewolax

Thread Status:
Not open for further replies.

Share This Page