Posted September 27, 201410 yr I am a new modder and i created a mod to access MySQL database I need it to verify a password from the database and log in. I wish the player can not move and unable to do anything before he(she) logs in. How can i do that? i can not find the entityplayer object from icommandsender(only playername and coordinates) Thanks a lot!
September 27, 201410 yr ICommadSender is an interface implemented by EntityPlayer (or it's subclasses, I can't remember). if(someCommandSender instanceof EntityPlayer) { EntityPlayer player = (EntityPlayer) someCommandSender; } BEFORE ASKING FOR HELP READ THE EAQ! I'll help if I can. Apologies if I do something obviously stupid. If you don't know basic Java yet, go and follow these tutorials.
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.