1. The forums will be archived and moved to a read only mode in about 2 weeks (mid march).

FormAPI command not working

Discussion in 'Plugin Help' started by CupidonSauce173, Sep 22, 2018.

  1. Primus

    Primus Zombie Pigman

    Messages:
    749
    Are you sure the code you write is the one that gots executed? And are you actually firing that event to start this code?
     
  2. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Yes I am sure at 100%
     
  3. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    I'm pretty sure you registered your event properly for (PlayerInteractEvent) and I don't see why it refuses to execute upon click.

    EDIT:
    What do you get if you var_dump your $result?
     
  4. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    how we do that
     
  5. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    Do which? var_dump() ?
     
  6. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    var_dump
     
  7. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Nothing happen
     
  8. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    I even tried to put something if $result is null (transfer the player to a server) but nothing happen..idk why
     
  9. InspectorGadget

    InspectorGadget Zombie Pigman

    Messages:
    462
    GitHub:
    InspectorGadget
    You tried doing var_dump($result); and it didn't throw out any lines in the console?

    Then, if that's the case your code isn't being executed.
     
  10. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    But how ? I mean, I don't see how it's not executed...The form work, I see the buttons but nothing happen, can u make a little example of how it should be and I will test it ?
     
  11. CupidonSauce173

    CupidonSauce173 Zombie

    Messages:
    298
    GitHub:
    cupidonsauce173
    Update

    It seemed to be the plugin EssentialsTP and a ShopGUI plugin that was making the forms to not work. Including plugins like BlockSniper. I still have no idea of why these plugins made FormAPI to not work correctly.
     
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.