CoinsAPI – The flexible currency API for Minecraft Simple, fast, and modern coin system for your server & network
───────────────────────────────────────────────
What is CoinsAPI? A lightweight economy core for Spigot/Paper with YAML/MySQL storage, PlaceholderAPI, a clean developer API, optional Vault bridge, and network sync via Redis.
───────────────────────────────────────────────
✨ Highlights
Player GUI – [/coins gui] shows balance & hints.
Admin GUI – [/coins gui <player>] quick actions: +100, -100, Set 1000, History.
Transaction History – [/coins history <player> [limit]] with timestamped entries.
Vault Integration – works with any plugin using Vault Economy.
Global Balances – MySQL storage + optional Redis pub/sub for live cross-server updates (Bungee/Velocity).
Discord Webhooks – notifications for large transfers & admin actions.
// Get service CoinsService coins
= org.
bukkit.
Bukkit.
getServicesManager().
load(CoinsService.
class); if(coins
!=null){ long bal
= coins.
getBalance(player.
getUniqueId()); coins.
transfer(player.
getUniqueId(), target.
getUniqueId(),
50); }
Events (simple):
Code (Java):
@EventHandler
publicvoid onPay
(CoinsPayEvent e
){ if(e.
getAmount()>1000000) e.
setCancelled(true);// block very large transfers }
@EventHandler
publicvoid onChange
(CoinsBalanceChangeEvent e
){ // log or react to balance changes }
Vault: if Vault is present and enabled in config, CoinsAPI registers as Economy provider automatically.
───────────────────────────────────────────────
❓ FAQ PlaceholderAPI not detected? Install PlaceholderAPI and restart the server.
Vault not working? Ensure Vault is installed and
vault.enabled: true.
Global balances? Use the same MySQL DB across servers; enable Redis for live updates.
No horizontal lines? Spigot BBCode doesn’t support [HR]; this page uses colored unicode lines.