Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/kygekteam/kygekexampleplugin

An example PocketMine-MP plugin to show coding styles of KygekTeam plugins
https://github.com/kygekteam/kygekexampleplugin

example-plugin kygekteam kygekteam-plugin plugin pocketmine pocketmine-mp pocketmine-mp-plugin pocketmine-plugin

Last synced: about 21 hours ago
JSON representation

An example PocketMine-MP plugin to show coding styles of KygekTeam plugins

Awesome Lists containing this project

README

        

# KygekExamplePlugin

[![Poggit CI](https://poggit.pmmp.io/ci.shield/KygekTeam/KygekExamplePlugin/~)](https://poggit.pmmp.io/ci/KygekTeam/KygekExamplePlugin/~)
[![Discord](https://img.shields.io/discord/735439472992321587.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2)](https://discord.gg/CXtqUZv)

**NOTICE:** This plugin branch is for PocketMine-MP 4. If you are looking for the PocketMine-MP 3 version of this plugin, please visit the [main](https://github.com/KygekTeam/KygekExamplePlugin/tree/main) branch.

An example PocketMine-MP plugin to show coding styles of KygekTeam plugins and as example plugin for PocketMine-MP. This plugin will never be released on Poggit as it only serves as an example plugin.

## โ“ Why This Plugin Exists

This plugin serves as an example plugin for PocketMine-MP in addition to PMMP's PocketMine-MP [example plugin](https://github.com/pmmp/ExamplePlugin). This plugin also serves as an example of the application of KygekTeam plugin coding standards (for more information, visit the [PHP Coding Standards](https://docs.kygek.team/coding-standards/php.html) page in KygekTeam Docs).

## โ” What Does This Plugin Do

This example plugin broadcasts a message to the server whenever a player chats with a delay by utilizing PocketMine-MP delayed task. Broadcasting can be enabled or disabled through the `/exampleplugin` command or directly in the `config.yml` file. The broadcasted message and delay can also configured through the `config.yml` file. The configuration file gets reloaded whenever a player chats regardless of the enable broadcasting settings.

## โœ… Features

- Uses the KygekTeam [PHP Coding Standards](https://docs.kygek.team/coding-standards/php.html) syntax
- PocketMine-MP 4 support (Check out the [PM4 branch](https://github.com/KygekTeam/KygekExamplePlugin/tree/pm4))
- Enable or disable through the `/exampleplugin` command or directly in the `config.yml` file
- Broadcast prefix can be enabled or disabled through the `config.yml` file
- Configurable broadcast message and delay
- Configuration file gets updated automatically when a newer configuration file is available

## ๐Ÿ”ง Installation

Follow the steps below if you want to test this plugin in your PocketMine-MP server:

1. ๐Ÿ”ฝ Download the latest version from GitHub Releases or Poggit CI below:
- Stable version (Recommended for most users): [Latest](https://github.com/KygekTeam/KygekExamplePlugin/releases/latest) | [All releases](https://github.com/KygekTeam/KygekExamplePlugin/releases)
- Build version (Only recommended for advanced users): [Poggit CI](https://poggit.pmmp.io/ci/KygekTeam/KygekExamplePlugin/~)
2. ๐Ÿ“ Drop the downloaded `KygekExamplePlugin.phar` plugin file into your PocketMine-MP server's `plugins` directory.
3. ๐Ÿ”„ Restart your server and you're ready to test the plugin!

## ๐Ÿ” Commands & Permissions

| Command | Description | Permission | Default | Aliases |
| --- | --- | --- | --- | --- |
| `/exampleplugin` | Command to enable or disable broadcast message when a player chats | `kygekexampleplugin.cmd` | `true` | `/expl`, `/ep` |

## ๐Ÿงพ Planned Features

You can request for a feature to be added in a future update [here](https://github.com/KygekTeam/KygekExamplePlugin/issues)!

## โž• Additional Info

KygekExamplePlugin is an example plugin by KygekTeam and licensed under **GPL-3.0**.

- Join our Discord server [here](https://discord.gg/CXtqUZv) for latest news and support from KygekTeam.
- If you found bugs or want to give suggestions, please visit [here](https://github.com/KygekTeam/KygekExamplePlugin/issues) or join our Discord server.
- We accept all contributions! If you want to contribute please make a pull request in [here](https://github.com/KygekTeam/KygekExamplePlugin/pulls).