From 21b15822931081eb26a4524bf4a6df00d2a2bdce Mon Sep 17 00:00:00 2001 From: Vincent Date: Wed, 25 Sep 2024 14:59:17 +0100 Subject: [PATCH] test: add tests for ServerListPingEvent --- src/endstone_test/event_listener.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/endstone_test/event_listener.py b/src/endstone_test/event_listener.py index c729899..1c8f79d 100644 --- a/src/endstone_test/event_listener.py +++ b/src/endstone_test/event_listener.py @@ -99,6 +99,11 @@ def on_thunder_change(self, event: ThunderChangeEvent): def on_weather_change(self, event: WeatherChangeEvent): self._plugin.logger.info(f"Weather state changed to {event.to_weather_state}") + @event_handler + def on_server_list_ping(self, event: ServerListPingEvent): + event.motd = ColorFormat.BOLD + event.motd + event.level_name = ColorFormat.GREEN + "Endstone Test" + ColorFormat.RESET + @property def server(self) -> Server: return self._plugin.server