HomeJavaModsMySQL Tokens
MySQL Tokens
TokensPromo.png
Features
Plugins using the api
Setup
  1. Download the plugin and upload it to your server.
  2. Reload!
  3. Edit the configuration
  4. Done!
Permissions
API
I made an API for developers :)
If you made a plugin using this api, please tell me! (Ill add it on this page)
Examples:
Code (Text):
//First download the plugin and add it to your build path.[/SIZE][/FONT][/LEFT][/SIZE][/FONT][/LEFT][/SIZE][/FONT][/LEFT]
[FONT=Arial][SIZE=3]
[LEFT][FONT=Arial][SIZE=3]
[LEFT][FONT=Arial][SIZE=3][LEFT]//When you've done that get the api by using this:
TokenCore api = (TokenCore) getServer().getPluginManager().getPlugin("MySQLTokens");

//To add tokens to a player's balance use:
api.addTokens(targetPlayer, amount);

//To remove tokens from a player's balance use:
api.removeTokens(targetPlayer, amount);

//To set a player's balance use:
api.setTokens(targetPlayer, amount);

//To remove tokens  if a player has enough tokens to do something use:
if(api.removeIfEnoughTokens(targetPlayer, amount) == true){
//Do Stuff
}
else {
targetPlayer.sendMessage(ChatColor.RED + "You dont have enough tokens to perform this action!");
}

//To get a player's balance use:
api.getTokens(targetPlayer);









Todo List
Hope you like it :)

Commands

Plugin details

Read from the plugin's own plugin.yml.

Quick facts

Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.

MySQL Tokens is a free Minecraft Java mod. Downloaded 2,097 times (via Spigot). Download it and open it directly in the game.

Explore more