Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/kygekteam/kygekexampleplugin
- Owner: KygekTeam
- License: gpl-3.0
- Created: 2021-07-29T10:31:46.000Z (about 3 years ago)
- Default Branch: pm4
- Last Pushed: 2022-01-25T14:28:42.000Z (over 2 years ago)
- Last Synced: 2024-09-26T10:20:36.557Z (about 21 hours ago)
- Topics: example-plugin, kygekteam, kygekteam-plugin, plugin, pocketmine, pocketmine-mp, pocketmine-mp-plugin, pocketmine-plugin
- Language: PHP
- Homepage:
- Size: 53.7 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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).