How to use Form by PMMP (Custom, Modal....)

Discussion in 'Development' started by ZackyVN, Jan 12, 2019.

  1. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    131
    The title said all :3
     
  2. GiantQuartz

    GiantQuartz Spider

    Messages:
    6
    PMMP does not have a form API, but there are some plugins that do (such as FormAPI)
     
  3. ZackyVN

    ZackyVN Baby Zombie

    Messages:
    131
    Yes, it has
    ModalFormRequestPacket and ModalFormResponsePacket
     
  4. GiantQuartz

    GiantQuartz Spider

    Messages:
    6
    No, it doesn't. Those are packets, not an API. :shoghi:
    The next time, try to use the search bar first.
     
    rektpixel, SOFe and Sandertv like this.
  5. SOFe

    SOFe Administrator Staff Member PMMP Team Poggit Admin

    Messages:
    1,876
    GitHub:
    sof3
    Those are internal and are subject to change as the protocol changes.
    Meanwhile the JSON is actually subject to change too... But whatever.
    You may implement your own form system using the pocketmine\form\Form interface, but using libFormAPI is easier.
     

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.