Posted March 1, 201411 yr 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); }
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.