Home›Java›Mods›CoinsAPI
CoinsAPI
ModsJava

CoinsAPI

Java mod listed for Minecraft 1.7–1.11. Downloads from the MC Java Mods app on Android.

⬇ Download on Spigot
Tired 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."));
        }
    }

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.
Quick facts

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.

Explore more