pmessentials / PMEssentials

A collection of essential PMMP commands, features and more. Heavily inspired by Essentials
GNU General Public License v2.0
11 stars 11 forks source link
essentials plugin pmmp pocketmine

PMEssentials

A collection of essential PMMP commands, features and more. Heavily inspired by Essentials HitCount

This plugin works with AutoCompleteAPI, but it is not required to have this.

Commands:

List of commands:

API:

PMEssentials has an API for developers can tweak a lot of features and improve them. You can access the UserMap to get users and externally enable things like godmode or vanish. The plugin also has quite a few events you can use to for instance modify command behaviour.

If you want to get the API instance, all you need to do is this:

$api = API::getAPI();

You can get the main file too, but you probably won't need it.

Now, let's say you're creating a command and you want it to work on vanished platers. You can use these functions:

//get ALL vanished players
$vplayers = $api->getVanishedPlayers();

//get vanished player from name
$vplayer = $api->getVanishedPlayer("myplayer");

If you want something changed in the API you can always open an issue with the API request template.