diff --git a/src/endstone_test/event_listener.py b/src/endstone_test/event_listener.py index d4071a4..e0e44c7 100644 --- a/src/endstone_test/event_listener.py +++ b/src/endstone_test/event_listener.py @@ -91,6 +91,10 @@ def on_player_teleport(self, event: PlayerTeleportEvent): def on_actor_death(self, event: ActorDeathEvent): self._plugin.logger.info(f"{event.actor.name} died.") + @event_handler + def on_actor_knockback(self, event: ActorKnockbackEvent): + self._plugin.logger.info(f"{event.actor.name} is knocked by {event.knockback}") + @event_handler def on_actor_removed(self, event: ActorRemoveEvent): self._plugin.logger.info(f"{event.actor.name} is removed from the world.")