Introduction
PocketMine-MP is server software for Minecraft: Bedrock Edition, downloaded in PHP. This tutorial walks you through creating a plugin for PocketMine 5.0.0 and later versions.
Preparation
Condition
- Knowledge of PHP basics
- Can be entered using (can be a text editor such as VS Code, Sublime Text, etc.)
- PocketMine-MP Server 5.0.0 or higher
- Composer ( untuk PHP)
PocketMine-MP installation
- Download the last version of PocketMine-MP from there Official Website.
- Follow the instructions to install PocketMine in your operating system.
Basic Plugin Structure
A PocketMine-MP plugin consisting of various archives, but the most important is plugin.yml, which describes the plugin, and a PHP archive containing p logic.
Carpet Structure
Primer Plugin
Archive plugin.yml
Archive Main.php
Command Personalization
To add personalized commands, you must specify them plugin.yml and create logic in PHP archive.
Modification plugin.yml
Modification Main.php
Events and Listener
These events allow the plugin to customize actions on the server.
Example: Events and Listener
Plugin Configuration
To allow plugin configuration, you can create an archive config.yml.
Archive config.yml
Modification Main.php
Most Important Part
- Starting the PocketMine-MP server.
- Organize the plugins you entered into the list of loaded plugins.
- Run the server to verify who did it.
Publishing plugins
- Make sure your plugin is well documented.
- Put the plugin into a public repository such as GitHub.
- Share your plugins in the PocketMin community.