Skip to content

VastleLLC/PocketVault

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PocketVault

PocketVault is a Economy, Chat, Permissions API to give developers easy access to hook into these systems without having to depending on the individual plugin them self, PocketVault attempts to solve to simplify the process for both the user and the developer.

Retrieves someones balance using the PocketVault economy provider API

// Get an instance of the PocketVault
$vault = PocketVault::getInstance();

/**
* Assuming $player is instance of a /pocketmine/Player object
*/
$money = $vault->getProviderManager()->getProvider(ProviderName::ECONOMY)->getBalance($player);

/**
* This is just something basic, something more advance would include checking if the server
* have a economy plugin registered/if it's enabled or not, if not, yield something else.
*/

Other

You can check out the WIKI for more information how to implement PocketVault into your plugin

About

A Vault full of common APIs for PMMP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages