A small, production-shaped example plugin for PocketMine-MP API 5.
It demonstrates:
- a
PluginBaseentry point; - event listener registration;
- a command and permission declared in
plugin.yml; - a bundled, editable configuration file; and
- configurable messages with
&color codes and{player}placeholders.
- Install PocketMine-MP 5 and the DevTools plugin.
- Copy this repository into the server's
pluginsdirectory. - Start or restart the server.
- Join the server and run
/nexusexample.
PocketMine-MP creates
plugin_data/BedrockNexusExample/config.yml on first startup. Edit that copy to
change the welcome and command messages, then restart the server.
From the server console, run:
/makeplugin BedrockNexusExample
DevTools writes the distributable PHAR to its configured output directory.
Place that PHAR in a PocketMine-MP server's plugins directory and restart the
server to install it.
.
├── plugin.yml
├── resources/
│ └── config.yml
└── src/
└── Main.php
- PocketMine-MP API 5.0.0 or newer within the 5.x API series
- PHP 8.1 or newer