diff --git a/python/src/endstone/_internal/endstone_python.pyi b/python/src/endstone/_internal/endstone_python.pyi index 66d562dfc..450b22dae 100644 --- a/python/src/endstone/_internal/endstone_python.pyi +++ b/python/src/endstone/_internal/endstone_python.pyi @@ -1073,8 +1073,11 @@ class Event: @property def is_cancelled(self) -> bool: """ - Gets whether the event is currently cancelled. + Gets or sets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins. """ + @is_cancelled.setter + def is_cancelled(self, arg1: bool) -> None: + ... class EventPriority: """ Listeners are called in following order: LOWEST -> LOW -> NORMAL -> HIGH -> HIGHEST -> MONITOR diff --git a/src/endstone_python/event.cpp b/src/endstone_python/event.cpp index 7dde75e5c..b57b0157a 100644 --- a/src/endstone_python/event.cpp +++ b/src/endstone_python/event.cpp @@ -75,7 +75,9 @@ void init_event(py::module_ &m, py::class_ &event, py::enum_