Sueta

● MySQL Coins API ●

2.0.0

Complete MySQL Coins API with commands!

·Plugin

  • /coins - coinsapi.use
  • /money - coinsapi.money

How to use the API:

- identifier is the name or the UUID from the player. You can use both!
- Set, add and remove methods will be executed Async!
- User will be registered automatically in the database!

Get coins (Integer):

int coins = CoinsAPI.getInstance().getCoins(String identifier);

Set coins:

CoinsAPI.getInstance().setCoins(String identifier, int coins);

Add coins:

CoinsAPI.getInstance().addCoins(String identifier, int coins);

Remove coins:

CoinsAPI.getInstance().removeCoins(String identifier, int coins);

Contains in database (Boolean):

boolean b = CoinsAPI.getInstance().cointainsInDatabase(String identifier);


If you need support, or if you have some nice new ideas, feel free to tell us them here.

There is a message.yml, where you can edit all messages!
Follow us on Twitter, and you will never miss an Update!

Similar projects

Plugin →