davycraft648/pmserver-ui

Integrate UI features available in the Script API to PocketMine-MP

Installs: 8

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/davycraft648/pmserver-ui

1.0.2 2025-06-20 07:03 UTC

This package is auto-updated.

Last update: 2025-09-20 07:44:34 UTC


README

PMServerUI is a simple library for PocketMine-MP that helps you to create forms for your server. It takes the familiar FormAPI and upgrades it with the features from the Minecraft Bedrock Script API ( minecraft/server-ui).

The original FormAPI was good, but it used older UI elements. PMServerUI changes that! We've basically combined the simplicity of FormAPI with the modern UI abilities of the Bedrock API.

Why Use PMServerUI?

  • Modern UI: Access powerful UI elements similar to those used in Bedrock Add-ons.
  • Reliable Data Handling: Know if a bad client sends malformed data, helping protect your plugin from incorrect inputs.
  • Player Disconnect Detection: Easily detect if a player leaves the server before submitting a form, allowing you to handle these situations gracefully.
  • Localization Support: Supports translations based on the player's language and resource pack.

How to Use This Virion (For Developers)

As a virion, PMServerUI is not a plugin you install directly. Instead, it's a library that other plugins include in their code.

Including PMServerUI in Your Plugin

  • Using Composer (virion v3):

    Add this as a dependency to your Composer project. Open your terminal in your project's root directory and run the following command:

    composer require davycraft648/pmserver-ui

    After running the command, your composer.json file will be updated. You can inspect it to see the new dependency listed, similar to this:

    {
      "require": {
        // other dependencies ...
        "davycraft648/pmserver-ui": "^1.0"
      }
    }
  • Using Poggit CI (virion v1):

    Add this to your .poggit.yml file:

    projects:
      YourPlugin:
        libs:
          - src: DavyCraft648/PMServerUI/PMServerUI
            version: ^1.0.2

Example Usage (For Developers)

See plugin example here

License

This project is licensed under the MIT License - see the LICENSE file for details.