ModsJava
CoinsAPI
Java mod listed for Minecraft 1.7–1.11. Downloads from the MC Java Mods app on Android.
⬇ Download on SpigotTired of not beeing able to use a currency?
Spoiler: Coin Change event
Code (Text):
@EventHandler
public void onCoinChange(CoinChangeEvent event) {
Player player = event.getPlayer();
if(event.getChangeType() == ChangeType.ADD) {
player.sendMessage(ChatColor.GREEN + (event.getNewCoins() + " coins where added to your balance."));
} else {
player.sendMessage(ChatColor.RED + (event.getNewCoins() - event.getOldCoins() + " coins where removed from your balance."));
}
}
public void onCoinChange(CoinChangeEvent event) {
Player player = event.getPlayer();
if(event.getChangeType() == ChangeType.ADD) {
player.sendMessage(ChatColor.GREEN + (event.getNewCoins() + " coins where added to your balance."));
} else {
player.sendMessage(ChatColor.RED + (event.getNewCoins() - event.getOldCoins() + " coins where removed from your balance."));
}
}
Spoiler: How to use?
Code (Text):
void:
CoinsAPI.setCoins(Player player, int coins);
// sets the players coins.
void:
CoinsAPI.addCoins(Player player, int coins'
// adds coins to the players balance
boolean:
CoinsAPI.hasCoins(Player player, int coins);
// returns a boolean if player has that amount of coins.
CoinsAPI.setCoins(Player player, int coins);
// sets the players coins.
void:
CoinsAPI.addCoins(Player player, int coins'
// adds coins to the players balance
boolean:
CoinsAPI.hasCoins(Player player, int coins);
// returns a boolean if player has that amount of coins.
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft versions listed: 1.7, 1.8, 1.9
- 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.
CoinsAPI is a free Minecraft Java mod. Compatible with Minecraft 1.7, 1.8, 1.9, 1.10 and newer. Downloaded 244 times (via Spigot). Download it and open it directly in the game.