/Coins <Add, remove, set> <Player> <Amount>
/Coins <add,remove,set> - javentis.*
- Free
- MySQL Support
- Own Config
- Developers API
CoinSystem coins = new CoinSystem();
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);
}
}
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;
}Similar projects
Plugin →Let Me Despawn
Improves performance by tweaking mob despawn rules. Say bye to pesky unintentional persistent mobs.
25MSueta
JourneyMap
Real-time map used for mapping in-game or your browser as you explore.
14.7MSueta
Emotecraft
Create your own emotes in Minecraft.
7.5MSueta
Simple Tpa
A simple tpa plugin which sends requests
5.4MSueta
Common Network
Forge and Fabric Unified Networking Solution
3.9MSueta
Set Home
A lightweight plugin for players to set their homes.
3.8MSueta