Skip to content

Commit

Permalink
fix: player.ping
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Jul 28, 2024
1 parent 76c9b69 commit 96175fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/endstone_test/event_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ def on_player_join(self, event: PlayerJoinEvent) -> None:
self._plugin.logger.info(f"Location: {event.player.location}")
self._plugin.logger.info(f"Velocity: {event.player.velocity}")
self._plugin.logger.info(f"Op status: {event.player.is_op}")
self._plugin.logger.info(f"Ping: {event.player.ping / datetime.timedelta(milliseconds=1)}")
self._plugin.logger.info(f"Ping: {event.player.ping}ms")
self._plugin.logger.info(f"Locale: {event.player.locale}")
self._plugin.logger.info(f"Device: {event.player.device_os} {event.player.device_id}")
self._plugin.logger.info("===========================")
Expand Down

0 comments on commit 96175fb

Please sign in to comment.