Currency API
This plugin is only useful for developers, this plugin does nothing on its own. This resource uses MySQL to store the player's currency so be sure to have a MySQL server when using this.
Plugins Using this API: Bounty
GET
Code (Text):
API.getCurrency(player);
ADD
Code (Text):
API.addCurrency(player, amount);
REMOVE
Code (Text):
API.removeCurrency(player, amount);
SET
Code (Text):
API.setCurrency(player, amount);
This plugin has a Join Event made inside of it which adds the player to the MySQL table.
This below is the config, make sure you change the details to your MySQL Server Details.
Code (Text):
#Default MySQL Config! WARNING DONT DELETE ANY OF THESE SECTIONS! If you dont have a password replace "password" with ''
MySQL:
Hostname: localhost
Port: 3306
Database: Server
Username: root
Password: password
Quick facts
- Edition: Minecraft Java
- File type: .jar
- How to install: Install the matching mod loader (Forge, Fabric or NeoForge) for your Minecraft version. → Download the .jar. → Put it in the .minecraft/mods folder and launch that loader profile.
- Where to get it: Opens on Spigot — not every file is mirrored on our own servers.
Install steps are the general flow for this file type — How to install Minecraft Java mods & modpacks walks through it step by step.
Currency API is a free Minecraft Java mod. Downloaded 335 times (via Spigot). Download it and open it directly in the game.