Jump to content

Recommended Posts

Posted

What are you trying to do?

Don't ask for support per PM! They'll get ignored! | If a post helped you, click the "Thank You" button at the top right corner of said post! |

mah twitter

This thread makes me sad because people just post copy-paste-ready code when it's obvious that the OP has little to no programming experience. This is not how learning works.

Posted

What are you trying to do?

Create a /ping command

Or maybe add a drawString in the top so I can see my ping without having to use cmd or logout of the server

Posted

Lucky for you I already have a ping command and it's really simple.

 

@Override
public void processCommandPlayer(EntityPlayer player, String[] args) {
outputMessage(player, String.valueOf(((EntityPlayerMP) player).ping), false, false);
}

 

Don't use outputMessage, it's a method I made. use player.addChatMessage

Posted

Lucky for you I already have a ping command and it's really simple.

 

@Override
public void processCommandPlayer(EntityPlayer player, String[] args) {
outputMessage(player, String.valueOf(((EntityPlayerMP) player).ping), false, false);
}

 

Don't use outputMessage, it's a method I made. use player.addChatMessage

 

Thanks!!

Guest
This topic is now closed to further replies.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.