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

Solved FormAPI Not working

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

  1. Khaled

    Khaled Slime

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

    xXNiceAssassinlo YT Zombie Pigman

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

    xXNiceAssassinlo YT Zombie Pigman

    Messages:
    499
    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 Slime

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

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,968
    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 Slime

    Messages:
    77
    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:
    499
    GitHub:
    xXNiceYT
    Thank for help
     
  8. Brian Medina Sánchez

    Brian Medina Sánchez Creeper

    Messages:
    3
  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.