Solved FormAPI Not working

Discussion in 'Development' started by xXNiceAssassinlo YT, Apr 13, 2018.

  1. Khaled

    Khaled Witch

    Messages:
    66
    Why dont just see Jojoe's SlapperPlus plugin?
     
  2. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    616
    GitHub:
    xXNiceYT
    Already tried doesn’t work
     
  3. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    616
    GitHub:
    xXNiceYT
    Can u try it with cratesystem I already tried doesn’t work with FormAPI plugin too
     
    yuko fuyutsuki likes this.
  4. yuko fuyutsuki

    yuko fuyutsuki Witch

    Messages:
    68
    GitHub:
    fuyutsuki
    Ok, I will try it.
     
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin Noobiest member in the PMMP Team

    Messages:
    1,702
    GitHub:
    sof3
    FormAPI was made a single-instance plugin so that the event handler only gets called once. Otherwise it would not have been approved.
    Nevertheless, developers must add the "depend: [FormAPI]" line in the plugin.yml
     
    yuko fuyutsuki likes this.
  6. yuko fuyutsuki

    yuko fuyutsuki Witch

    Messages:
    68
    GitHub:
    fuyutsuki
    Because it can not be used for incorporation for the reasons mentioned above, line 33 of Main.php is called
    PHP:
    $this->FormAPI = new FormAPI();
    not,
    PHP:
    $this->FormAPI $this->getServer()->getPluginManager()->getPlugin("FormAPI");
    And you have to.
    Pull request will be sent so please refer to that for details.
     
    Last edited: Apr 16, 2018
    xXNiceAssassinlo YT and SOFe like this.
  7. xXNiceAssassinlo YT

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    616
    GitHub:
    xXNiceYT
    Thank for help
     
  8. Brian Medina Sánchez

    Brian Medina Sánchez Creeper

    Messages:
    3

Share This Page

  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.