Sueta
MY

MySQL-Tokens

1.2

The best global currency for server networks!

·Plugin


MySQL-Tokens is a very efficient currency plugin, that stores data in a MySQL-Database! The tokens are taken, given and reset using an Async method, therefore it won't cause any lag whatsoever.

  • Stores tokens in a MySQL database
  • Ability to give, take and reset players tokens!
  • Supports UUID's
  • Doesn't require any other dependencies
  • Java 7
  • Spigot 1.8.X

  • /tokens - Checks token balance
  • /tokens reset <player> - Resets players tokens
  • /tokens give <player> <amount> - Gives players tokens
  • /tokens take <player> <amount> - Takes players tokens
  • /tokens add <player> <amount> - Adds tokens to the player.

  • tokens.admin - Allows the user to take and give tokens!
  • tokens.reset - Allows the user to reset tokens accounts!


# DataBase
host: 127.0.0.1
port: 3306
database: dbName
user: root
password: password


    • Download the plugin.

    • Locate the plugin.

    • Drop the plugin into your plugins folder.

    • Restart your server.

    • Enjoy!


public int getTokens(Player p) {
        return this.fd.getTokens(p);
    }

    public boolean hasTokens(Player p) {
        return this.fd.isInDb(p);
    }

    public void resetTokens(Player p) {
        this.sd.resetTokens(p);
    }

    public void addTokens(Player p, int amount) {
        this.sd.giveTokens(p, amount);
    }

    public void giveTokens(Player p, int amount) {
        this.sd.giveTokens(p, amount);
    }

    public void takeTokens(Player p, int amount) {
        this.sd.takeTokens(p, amount);
    }

How do I access these?

Tokens.getInstance().getAPI()....


    • If you find any bugs or issues, don't leave a bad rating, just private message me on the forums and it'll be fixed as soon as possible.
  • Have any suggestions? Leave them in the discussion page or PM me!
  • I'd like to thank CoolText for supplying the images.


> https://github.com/Inkzzz/MySQL-Tokens

Thank you for reading my plugin, MySQL-Tokens.
Have a nice day,
Inkzzz.

Similar projects

Plugin →