Skip to content

Commit 4895ea3

Browse files
committed
refactor: logging messages in player join/quit events due to api change
1 parent f4d89d6 commit 4895ea3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/endstone_example/example_listener.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ def on_player_join(self, event: PlayerJoinEvent):
1919
player = event.player
2020
self._plugin.logger.info(
2121
ColorFormat.YELLOW
22-
+ f"{player.name}[/{player.address}:{player.port}] joined the game with UUID {player.unique_id}"
22+
+ f"{player.name}[/{player.address}] joined the game with UUID {player.unique_id}"
2323
)
2424

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

0 commit comments

Comments
 (0)