docs: Added onPlayerDamage event

+ added info boxes about event cancelling
This commit is contained in:
AURUMVORXX
2024-11-06 19:59:08 +03:00
parent 9206d251e6
commit fe0604d79c
8 changed files with 29 additions and 1 deletions

View File

@@ -1,4 +1,5 @@
# `event` onPlayerTakeItem
# `event` onPlayerTakeItem
> [!TIP] This event can be cancelled
!!! note
Even if this event is triggered it doesn't mean, that player will get item to his inventory. It only means, that the player tried to get the item from the ground. Server is the last decide if the item can be taken from the ground. Canceling this event will prevent the item to be taken from the ground.