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!
Code (Text):# 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!
How do I access these?Code (Text):
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);
}
Code (Text):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.

MySQL-Tokens 1.2
The best global currency for server networks!
-
Minimil2 and deadbuilder like this.
Recent Reviews
-
Backstabber1
- 5/5,
Excellent plugin but sadly it was dropped by the author. If anyone is interested I created a new plugin based off the same idea but with a lot more features (placeholders & shop included). I also added a api wrapper for this plugin so you wont lose data when shifting to that plugin. If anyone is interested you can find it here:
https://www.spigotmc.org/resources/epicset-tokens-1-8-1-16-2-mysql-based-currency-shop-mysql-tokens-compatable.83460/
Note that in no way did i try & copy Op's work. I only think that the project needs more work & shouldn't be dropped since a lot of servers use this plugin. -
HoneyBearc
- 5/5,
16.2 Can work without any problems
---------------------------------------------------- -
TwerkRekt
- 5/5,
Nice plugin !
I have created a placeholder for your plugin link:
https://www.spigotmc.org/resources/placeholder-for-mysql-tokens.75528/ -
Mughalhadi
- 3/5,
a good plugin but the api needs a little work. all the methods used for the api are synchronous and cause lag when accessing. an easy fix would be to make a local datatbase and use that for the api mamangement and update the sql database later asynchronously
-
Ecledia
- 4/5,
org.bukkit.command.CommandException: Unhandled exception executing command 'tokens' in plugin MySQL-Tokens v1.0
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:46) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at org.bukkit.command.SimpleCommandMap.dispatch(SimpleCommandMap.java:141) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at org.bukkit.craftbukkit.v1_9_R2.CraftServer.dispatchCommand(CraftServer.java:646) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.PlayerConnection.handleCommand(PlayerConnection.java:1349) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.PlayerConnection.a(PlayerConnection.java:1184) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:45) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.PacketPlayInChat.a(PacketPlayInChat.java:1) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.PlayerConnectionUtils$1.run(SourceFile:13) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_201]
at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_201]
at net.minecraft.server.v1_9_R2.SystemUtils.a(SourceFile:45) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.D(MinecraftServer.java:726) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.DedicatedServer.D(DedicatedServer.java:399) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.C(MinecraftServer.java:665) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at net.minecraft.server.v1_9_R2.MinecraftServer.run(MinecraftServer.java:564) [spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
at java.lang.Thread.run(Thread.java:748) [?:1.8.0_201]
Caused by: java.lang.NullPointerException
at me.bukkit.mTokens.Inkzzz.FetchData.getTokens(FetchData.java:16) ~[?:?]
at me.bukkit.mTokens.Inkzzz.Commands.TokensCMD.onCommand(TokensCMD.java:27) ~[?:?]
at org.bukkit.command.PluginCommand.execute(PluginCommand.java:44) ~[spigot-1.9.4.jar:git-Spigot-c6871e2-0cd0397]
... 15 more -
helomi
- 5/5,
Like wrote WindUnwake, Realy good plugin but without placeholders :(
Need 100 chars . -
WindUnwaken
- 5/5,
Good Plugin, but no Placeholder, I hope you can make a expansion for PlaceholderAPI. It will more better.
-
NickerdeNick
- 4/5,
really good Plugin! but is there a way to get from tokens to money (vault) and money to tokens? Sorry for the bad English (I'm Dutch)
-
Author's Response
That's currently not a feature but it could be added if is highly requested.
-
IPv10
- 5/5,
Great plugin! Does exactly what I need.
Would be nice if I could withdraw these tokens so that they are physical tokens. For example, when having these tokens you could have a sunflower as a token and when you right-click on the token it will add tokens to the database.
Makes it easier to trade tokens to each other in the server. -
polo002
- 5/5,
Fantastic plugin. Thank you. Great Job! Works great on TGN's bungee network. Been looking for one like this for ages! 5/5 stars