MySQL-Tokens 1.2

The best global currency for server networks!

  1. Inkzzz
    [​IMG]
    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.

    [​IMG]
    • 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
    [​IMG]
    • /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.
    [​IMG]
    • tokens.admin - Allows the user to take and give tokens!
    • tokens.reset - Allows the user to reset tokens accounts!
    [​IMG]
    Code (Text):
    # DataBase
    host: 127.0.0.1
    port: 3306
    database: dbName
    user: root
    password: password
    [​IMG]


      • Download the plugin.

      • Locate the plugin.

      • Drop the plugin into your plugins folder.

      • Restart your server.

      • Enjoy!
    [​IMG]
    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);
        }
     
    How do I access these?

    Code (Text):
    Tokens.getInstance().getAPI()....


    [​IMG]


      • 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.
    [​IMG]
    > https://github.com/Inkzzz/MySQL-Tokens

    Thank you for reading my plugin, MySQL-Tokens.
    Have a nice day,
    Inkzzz.
    Minimil2 and deadbuilder like this.

Recent Updates

  1. Added a command
  2. API Added!

Recent Reviews

  1. Backstabber1
    Backstabber1
    5/5,
    Version: 1.2
    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.
  2. HoneyBearc
    HoneyBearc
    5/5,
    Version: 1.2
    16.2 Can work without any problems
    ----------------------------------------------------
  3. TwerkRekt
    TwerkRekt
    5/5,
    Version: 1.2
  4. Mughalhadi
    Mughalhadi
    3/5,
    Version: 1.2
    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
  5. Ecledia
    Ecledia
    4/5,
    Version: 1.2
    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
  6. helomi
    helomi
    5/5,
    Version: 1.2
    Like wrote WindUnwake, Realy good plugin but without placeholders :(
    Need 100 chars .
  7. WindUnwaken
    WindUnwaken
    5/5,
    Version: 1.2
    Good Plugin, but no Placeholder, I hope you can make a expansion for PlaceholderAPI. It will more better.
    1. Inkzzz
      Author's Response
      I have rewritten a new version and it will be released shortly.
  8. NickerdeNick
    NickerdeNick
    4/5,
    Version: 1.2
    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)
    1. Inkzzz
      Author's Response
      That's currently not a feature but it could be added if is highly requested.
  9. IPv10
    IPv10
    5/5,
    Version: 1.2
    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.
  10. polo002
    polo002
    5/5,
    Version: 1.2
    Fantastic plugin. Thank you. Great Job! Works great on TGN's bungee network. Been looking for one like this for ages! 5/5 stars