-
-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Add getLastPing to Player #13552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Add getLastPing to Player #13552
Conversation
|
Would it make sense to return |
|
It would seem weird for that to be a Duration while getPing() right next to it is in ms, plus ms seems to be the generally accepted resolution on "the internets." But it's easy enough to change if there's more demand for it I suppose. I just assume that even if it was a Duration, the absolute majority use-case would be people converting it to milliseconds. |
lynxplay
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We hardforked, no need for comments.
Owen1212055
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should not be on Player, rather the PlayerCommonConnection.
Also include some of the other ping stuff.
This exposes most recent ping in milliseconds on a Player. The default
Player.getPing()represents an average over time, but it is very nice to be able to actually see their most recent ping.