Skip to content

Commit

Permalink
refactor: logging messages in player join/quit events due to api change
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed May 2, 2024
1 parent f4d89d6 commit 4895ea3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/endstone_example/example_listener.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@ def on_player_join(self, event: PlayerJoinEvent):
player = event.player
self._plugin.logger.info(
ColorFormat.YELLOW
+ f"{player.name}[/{player.address}:{player.port}] joined the game with UUID {player.unique_id}"
+ f"{player.name}[/{player.address}] joined the game with UUID {player.unique_id}"
)

@event_handler
def on_player_quit(self, event: PlayerQuitEvent):
player = event.player
self._plugin.logger.info(ColorFormat.YELLOW + f"{player.name}[/{player.address}:{player.port}] left the game.")
self._plugin.logger.info(ColorFormat.YELLOW + f"{player.name}[/{player.address}] left the game.")

0 comments on commit 4895ea3

Please sign in to comment.