From 30e79fe4b7a39cbd609a2a35cea43828df958b73 Mon Sep 17 00:00:00 2001 From: Vincent Date: Tue, 3 Sep 2024 23:55:51 +0100 Subject: [PATCH] docs: update the docstring of PlayerKickEvent --- python/src/endstone/_internal/endstone_python.pyi | 2 +- src/endstone_python/event.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/src/endstone/_internal/endstone_python.pyi b/python/src/endstone/_internal/endstone_python.pyi index 4d3bf896b..e421b3f8a 100644 --- a/python/src/endstone/_internal/endstone_python.pyi +++ b/python/src/endstone/_internal/endstone_python.pyi @@ -1931,7 +1931,7 @@ class PlayerKickEvent(PlayerEvent): @property def reason(self) -> str: """ - Called when a player gets kicked from the server + Gets or sets the reason why the player is getting kicked """ @reason.setter def reason(self, arg1: str) -> None: diff --git a/src/endstone_python/event.cpp b/src/endstone_python/event.cpp index 218afe599..4d0b050ca 100644 --- a/src/endstone_python/event.cpp +++ b/src/endstone_python/event.cpp @@ -141,7 +141,7 @@ void init_event(py::module_ &m, py::class_ &event, py::enum_(m, "PlayerJoinEvent", "Called when a player joins a server"); py::class_(m, "PlayerKickEvent", "Called when a player gets kicked from the server") .def_property("reason", &PlayerKickEvent::getReason, &PlayerKickEvent::setReason, - "Called when a player gets kicked from the server"); + "Gets or sets the reason why the player is getting kicked"); py::class_(m, "PlayerLoginEvent", "Called when a player attempts to login in.") .def_property("kick_message", &PlayerLoginEvent::getKickMessage, &PlayerLoginEvent::setKickMessage, "Gets or sets kick message to display if event is cancelled");