Sueta
CO

CoinsAPI [MySQL]

1.0.1

A CoinsAPI using MySQL

·Plugin

CoinsAPI v1.0
MySQL required!


Use CoinsAPI as Plugin:

SetUp Plugin

1. Download
Download the plugin

2. Plugins folder
Put CoinsAPI in your plugins folder

3. Restart or reload
Restart or reload the Server to generate the files

4. MySQL
Enter your McSQL data into the config.yml

5. Restart or reload
Restart or reload the Server to connect to the database

Use Plugin

Coins.PNG
Get your coins with /coins or others with /coins [player]

Coins_SET.PNG
Players with the permission coins.admin can manage other players coins

Commands: /coins [set/add/remove] [player] [coins]
Aliases: /money

Every Message can be customizen in the config.yml

´

Use CoinsAPI as APi:

API

Get the uuid:
player.getUniqueId().toString;

Get Coins:
CoinsAPI.getCoins(uuid, coins);

Add Coins:
CoinsAPI.addCoins(uuid, coins);

Remove Coins:
CoinsAPI.removeCoins(uuid, coins);

Has Coins (boolean):
CoinsAPI.hasCoins(uuid, coins);

Insert Player in table:
CoinsAPI.insertPlayerInTable(uuid, coins);

Player is in table (boolean):
CoinsAPI.isInTable(uuid);

Coins Change Event (Event):
@EventHandler
public void onCoinsChange(CoinsChangeEvent event) { }


If there are any bugs or suggestions let me know! (on discord)

Contact (English and German):
Discord: https://discord.gg/bQQcpTj | Spoocy99#9999

Similar projects

Plugin →