✪ CoinsAPI | [1.8 - 1.21.8] | Vault & PlaceholderAPI ✪ icon

✪ CoinsAPI | [1.8 - 1.21.8] | Vault & PlaceholderAPI ✪ -----

CoinsAPI for developers and server owners | With commands + Pay command | Editable messages | Vault



[​IMG]
CoinsAPI is a plugin for server owners but also for developers.
Remove player coins, add them or develop something with them.​

[​IMG]
This CoinsAPI is not a normal API.
It has features that other CoinsAPIs do not have.
The most special features are listed here.

MySQL - All of the players coins are stored in the Database.
This means that they can be called up on any server provided the same Database is entered.

Hex colors - Hex colors are supported with which you can better customize the plugin design.

Commands - Commands to add, remove or reset coins.
The commands also work through the console.

Developer API - The Developer API provides access directly
to the database coins or the current session coins.
Furthermore, there are events with which you can creatively let off steam.

Vault Support - You want to use CoinsAPI with other money
plugins, no problem CoinsAPI offers Vault support.

Numbers format - The formatting of the coins is special in this plugin,
for example, the coins are displayed as 1.000 and not 1000.

UUID Support - The players are not saved in the Database by
their player name but by their UUID.
So it is not a problem if a player changes his name.

Editable Messages - All messages can be configured in the Messages.yml.
Including whether the pay command should be activated.

Placeholder Support - The plugin also supports the PlaceholderAPI.
%CoinsAPINB_coinsdb% - Directly from the database.
%CoinsAPINB_coins% - From the current session.
[​IMG]
Commands
/Coins — Displays your current coins.
/Coins [Player] — Displays the current coins of a player.
/Coins [Player] reset — Resets the coins of a player.
/Coins [Player] pay [Amount] — Send coins to other players.
/Coins [Player] [add | remove | set] [Amount] — Edit coins from players.
/Coins reload — Reload all config settings.
/Pay [Player] [Amount] — Send coins to other players.
Permissions
coinsapi.showcoins — Displays the current coins of a player.
coinsapi.editcoins — Edit coins from players.
coinsapi.reset — Resets the coins of a player.
coinsapi.pay — Send coins to other players.
coinsapi.checkupdate — To receive update notification.
[​IMG]
For successful startup, CoinsAPI requires:
  • Java 8 or newer.
  • A MySQL Databases.
  • A SpigotMC Server with version 1.8 - 1.20 (non cracked server)
1. Download the Plugin and drag it to your plugin folder.
2. Now restart or start your Server.
3. Now open the CoinsAPI folder in your plugins folder and enter your MySQL Database in MySQL.yml.
4. Now restart your server and check in the console whether everything was successful.
If so, enter the server and that was it.
[​IMG]
Code (Java):
//Add coins directly to a player in the database.
CoinsAPI. addCoinsDB (p. getUniqueId ( ). toString ( ), 50 ) ;

//Remove coins directly from a player in the database.
CoinsAPI. removeCoinsDB (p. getUniqueId ( ). toString ( ), 50 ) ;

//Set the coins of a player to a certain value in the database.
CoinsAPI. setCoinsDB (p. getUniqueId ( ). toString ( ), 100 ) ;

//Query how many coins the player has in the database.
CoinsAPI. getCoinsDB (p. getUniqueId ( ). toString ( ) ) ;

//Add coins to a player.
CoinsAPI. addCoins (p, 50 ) ;

//Remove coins from a player.
CoinsAPI. removeCoins (p, 50 ) ;

//Add coins to a player.
CoinsAPI. setCoins (p, 50 ) ;

//Query how many coins the player owns.
CoinsAPI. getCoins (p ) ;

//Event when the coins of a player change.
@EventHandler
public void on (PlayerChangeCoinsEvent e ) {
Player p = e. getPlayer ( ) ;
int amount = e. getAmount ( ) ;
     
p. sendMessage ( "Your coins have changed. (" +amount + ")" ) ;
}

//Event when a player pays another Coins.
@EventHandler
public void on (PlayerPayCoinsEvent e ) {
Player sender = e. getSender ( ) ;
Player receiver = e. getReceiver ( ) ;
int amount = e. getAmount ( ) ;
     
sender. sendMessage ( "You gave " +receiver +amount + " coins." ) ;
receiver. sendMessage ( "You have received " +amount + " coins from " +sender ) ;
}
 

[​IMG]
Before you ask for Support, please check all the steps.
Never use Reviews to report errors or ask anything.

Here are the Support options:
  • If you want to discuss with us don't forget to tag @Neonn_Bukkit. Don't forget the discussion place is not a Support place!
  • For general assistance, Support and suggestions join our Discord.
  • PM'ing us on SpigotMC is also a way of contact, but it will make you to wait longer.
We recommend that you contact us via Discord.
[​IMG]
By downloading and using CoinsAPI, you agree to the following Terms:

YOU MAY:
  • Use CoinsAPI on every server you want.
YOU MUST NOT:
  • Attempt to decompile or deobfuscate the source code of CoinsAPI or its parts.
  • Publish to other websites without our permission.
WE:
  • We do not change the software for anyone, not even for an extra fee, it stays as it is.
  • Reserve the right to update the TOS at any time, with or without a notification.
Resource Information
Author:
----------
Total Downloads: 36,016
First Release: Jan 21, 2017
Last Update: Jan 17, 2024
Category: ---------------
All-Time Rating:
71 ratings
Version -----
Released: --------------------
Downloads: ------
Version Rating:
----------------------
-- ratings