Jump to content

[1.7.10 & 1.8] get a players ping to a server?


AyyyyLmao

Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

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!!

Link to comment
Share on other sites

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.