plugin.yml is a YAML file that contains general information of the plugin.
This is where you add the name of your plugin.
main is where you put the path to the main file in the src folder.
Here are four ways you can make the path:
- "PluginName" : This is your plugin name
- "YourName" : This is your name
This is where you declare your plugin version. It is recommended to use semantic versioning (x.x/x.x.x).
This is where you declare your PocketMine-MP API version(s) which is compatible with your plugin.
It should contain the minimum API minor and patch version for every major API version supported by the plugin.
You can declare mutiple API versions by using .
api: [3.0.0, 4.0.0]
This is where you can declare your minecraft protocol version supported by your plugin.
Usually you don't need this, but it is recommended to declare it if you use classes from
pocketmine\network\mcpe for compatibility reasons.
You may need to update this if a new Minecraft version released. Example:
This is where you declare your plugin author (usually your name).
This is where you can declare your plugin description.
If your plugin uses commands you need to register the commands here.
If you registered commands (either in plugin.yml or code), you need to declare the permission usage.
There are 4 possible values for the
true- Anyone can use the command.
op- Only OP-ped players can use the command.
notop- Only not OP-ped players can use the command.
false- Nobody can use the command (except from console).