<aside> <img src="/icons/puzzle_gray.svg" alt="/icons/puzzle_gray.svg" width="40px" />

What is A Plugin?

</aside>

A PMMP (PocketMine-MP) plugin is a custom script that adds new features or modifies gameplay in a Minecraft: Bedrock Edition server running PocketMine-MP. Plugins are written in PHP and interact with the server using the PocketMine API.

What Can a PMMP Plugin Do?

A plugin can:

✔ Add new commands (e.g., /spawn, /heal)

✔ Change game mechanics (e.g., disable fall damage, modify item drops,adding your own games..)

✔ Create custom worlds, items, and mobs

✔ Manage players (e.g., teleport, ban, give items and so much more)

✔ Integrate with databases (SQL, SQlite) or external services

How Does a PMMP Plugin Even Flipping Work?

  1. Event-driven: The server triggers "events" (e.g., when a player joins, chats, or breaks a block), and the plugin listens for these events to react accordingly.
  2. Commands: Plugins can define commands that players can type in chat to perform actions.
  3. Configuration: Many plugins use configuration files (config.yml) to allow server owners to customize settings.

<aside> 💡

But Now, How Do We Code Our Own Plugins?

</aside>

<aside> <img src="/icons/arrow-northeast_green.svg" alt="/icons/arrow-northeast_green.svg" width="40px" />

Heres a ‘’Simple’’ Description Of How To Start!, Theres A Coding Tutorial, Scroll More Down To Find It

</aside>

Step 1: Set Up Your Development Environment

Before you start coding, you need: