MySQL Tokens 1.4

Economy System with tokens (Customizable Messages)

  1. MasterDerpyDogoe
    TokensPromo.png
    Features
    • MySQL and File Saving
    • BungeeCord Support
    • All messages are cusomizable
    • Set, Add, Remove, Remove If Enough (and execute command if enough) and Pay Tokens
    • UUID Compatible
    Plugins using the api
    Setup
    1. Download the plugin and upload it to your server.
    2. Reload!
    3. Edit the configuration
    4. Done!
    Permissions
    • tokens.add to acces the /tokens add <player> <amount> command
    • tokens.remove to acces the /tokens remove <player> <amount> command
    • tokens.removeifenough to acces the /tokens removeifenough <player> <amount> <command> command (use the %player% tag in the <command> if you need the player name)
    • tokens.set to acces the /tokens set <player> <amount> command
    • tokens.info to acces the /tokens info command
    • tokens.pay to acces the /tokens pay <player> <amount> command
    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
    • Suggest features here
    Hope you like it :)
    Lukep999 likes this.

Recent Updates

  1. BungeeCord Support added.
  2. mySQL bug last fix.
  3. MySQL bug fixed.

Recent Reviews

  1. dangerORclose
    dangerORclose
    3/5,
    Version: 1.4
    Hey!
    Please, your plugin seems to be working and be the only good one i can really use! I really need this to work safely and well!
    Can you please update this plugin? Fix the early reported bugs etc?
    That would be so amazing! Thanks anyway :D
  2. gyurix
    gyurix
    1/5,
    Version: 1.4
    The data to MySQL is not saved regularly, so a simple server crash would totally ignore all the new balance data.

    Not every plugin message is configurable, which is very bad for the not english servers.

    And finally the authors customer support is terrible.
    1. MasterDerpyDogoe
      Author's Response
      I like how youre commenting on a plugin that wasnt updated in a year xD-
  3. SloPlays
    SloPlays
    5/5,
    Version: 1.4
    Looks like a very usefull pluign for my network.
    Want to check it out how its working ?
    (i do not guarantee you that i am still using this pluign at the time you are reding this)
    IP: play.towernetwork.eu

    Have a nice day.
    ~Lazo
  4. SuperRonanCraft
    SuperRonanCraft
    4/5,
    Version: 1.31
    Amazing plugin! Just one huge problem... the mySQL database isn't working it's giving me an error, I will PM the Error message as it's very long and spigot thinks I'm spamming...