/PMEssentials

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

Primary LanguagePHPGNU General Public License v2.0GPL-2.0

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:

  • /back
  • /break
  • /broadcast
  • /burn
  • /clearinventory
  • /extinguish
  • /feed
  • /gamemode (custom)
  • /gma
  • /gmc
  • /gms
  • /gmv
  • /god
  • /heal
  • /i
  • /milk
  • /mute
  • /nick
  • /nuke
  • /ping
  • /powertool
  • /realname
  • /size
  • /smite
  • /speed
  • /thru
  • /tpa
  • /tpaccept
  • /tpahere
  • /tpdeny
  • /tphere
  • /tree
  • /usage
  • /vanish
  • /xyz
  • /afk
  • /delhome
  • /delwarp
  • /home
  • /server
  • /sethome
  • /setspawn
  • /setwarp
  • /spawn
  • /tp (custom)
  • /tpo
  • /tpohere
  • /warp
  • a ton more...

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.