TokenAPI (For ElementalTokens)
v1.0The Official public API for the premium plugin "ElementalTokens"
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
softdepend: [ElementalTokens]
Methods:
//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 :p https://discord.gg/Qqf8BfN
Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta