This is a simple library for you guys to use to hook into ElementalTokens without having to purchase the plugin 
Notes:
- This is
NOT a plugin.
- Do
NOT put this in your server's "plugins" folder
- You will be
REQUIRED to update to
v1.0.9 (or later) of
ElementalTokens for this to work
Installation:
- To use this API, simply import this file into your project's build path. Once that is done. You will need to go into your project's "plugin.yml" file and add
Code (Text):
softdepend: [ElementalTokens]
Methods:
Code (Text):
//Get a player's token balance
TokenAPI.getTokens(uuid);
//Set a player's token balance
TokenAPI.setTokens(uuid, newBalance);
//Add tokens to a player's balance
TokenAPI.addTokens(uuid, depositAmount);
//Remove tokens from a player's balance
TokenAPI.removeTokens(uuid, withdrawAmount);
//Check if a player is in the ElementalTokens database
TokenAPI.playerExists(uuid);
//Retreive the Token Item
TokenAPI.getTokenItem();
//Register a NEW player with the set default balance
TokenAPI.registerNewPlayer(uuid);
//Get a list of all currently registered players
TokenAPI.getRegisteredPlayers();
//Checks if the current item is a valid Token
TokenAPI.isToken(item);
If you have any questions or concerns about this API, feel free to contact me via private message or join my discord and @ me
https://discord.gg/Qqf8BfN