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/Coins <Add, remove, set> <Player> <Amount>
/Coins <add,remove,set> - javentis.*
- Free
- MySQL Support
- Own Config
- Developers API
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);
}
}
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;
}
Quick facts
- Edition: Minecraft Java
- File type: .jar
- Minecraft version listed: 1.8
- 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.
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.