Home›Java›Mods›CoinSystem | MYSQL | API FOR DEVELOPERS
CoinSystem | MYSQL | API FOR DEVELOPERS
ModsJava

CoinSystem | MYSQL | API FOR DEVELOPERS

Java mod listed for Minecraft 1.8. Downloads from the MC Java Mods app on Android.

/Coins <Add, remove, set> <Player> <Amount> /Coins <add,remove,set> - javentis.* - Free - MySQL Support - Own Config - Developers API CoinSystem coins =…

⬇ Download on Spigot
commands.png
/Coins <Add, remove, set> <Player> <Amount>

Permissions.png
/Coins <add,remove,set> - javentis.*
Features.png
- Free
- MySQL Support
- Own Config
- Developers API

API.png
CoinSystem coins = new CoinSystem();
Code (Text):
public static void setCoins(String name, int coins) {

        if (playerExists(name)) {

            MySQL.update("UPDATE " + getDataBase() + " SET pCoins = '" + coins + "' WHERE Name = '" + name + "';");

        } else {

            createPlayer(name);

            setCoins(name, coins);

        }

    }
Code (Text):

public static int getCoins(String name) {

        int i = 0;

        if (playerExists(name)) {

            ResultSet rs = MySQL.getResult("SELECT * FROM " + getDataBase() + " WHERE Name = '" + name + "';");

            try {

                if ((rs.next()) && (Integer.valueOf(rs.getInt("pCoins")) == null)) {
                }

                i = rs.getInt("pCoins");

            } catch (SQLException localSQLException) {
            }

        } else {

            createPlayer(name);

            getCoins(name);

        }

        return i;

    }
 

Commands

Plugin details

Read from the plugin's own plugin.yml.

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.

CoinSystem | MYSQL | API FOR DEVELOPERS is a free Minecraft Java mod. Compatible with Minecraft 1.8. Downloaded 273 times (via Spigot). Download it and open it directly in the game.

Explore more