MAPI

Bukkit Plugins
1,117 Downloads Last Updated: Jan 21, 2014 Game Version: CB 1.6.4-R2.0

Examples


Showing User Balance

If you wanted to get a user's balance from mysql, you would do this:

MAPI.connect("localhost", "db_admin", "abc123", "minecraft");
int balance = MAPI.selectInt("userData", "user", p.getName(), "balance");
MAPI.disconnect();

Comments

Posts Quoted: