Skip to content

Commit

Permalink
docs: update the docstring of PlayerKickEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
wu-vincent committed Sep 3, 2024
1 parent 14a9b26 commit 30e79fe
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/src/endstone/_internal/endstone_python.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/endstone_python/event.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ void init_event(py::module_ &m, py::class_<Event> &event, py::enum_<EventPriorit
py::class_<PlayerJoinEvent, PlayerEvent>(m, "PlayerJoinEvent", "Called when a player joins a server");
py::class_<PlayerKickEvent, PlayerEvent>(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_<PlayerLoginEvent, PlayerEvent>(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");
Expand Down

0 comments on commit 30e79fe

Please sign in to comment.