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

Discussion in 'Development' started by ZackyVN, Jan 12, 2019 at 11:18 AM.

  1. ZackyVN

    ZackyVN Witch

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

    GiantQuartz Creeper

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

    ZackyVN Witch

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

    GiantQuartz Creeper

    Messages:
    5
    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 Noobiest member in the PMMP Team

    Messages:
    1,760
    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.