Hello everyone,
I'm making a GUI for my MCPC+ server and I'd like to know what's the best way to get the player money and draw it to the GUI ?
I thought to connect to the MySQL database which has the player balances on it but I don't know if it possible and if this is a good way.
Also, how to make my GUI draw something only in Multiplayer Mode ?
I tried that in my drawScreen method, but it doesn't work.
if(!mc.getMinecraft().theWorld.isRemote){
this.drawString(fontRendererObj, "Money:", posX+10, posY+30, 0xf5f5dc);
this.drawString(fontRendererObj, getMoneyFromMysql()+"$", posX+50, posY+30, 0xffe100);
}