summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump
diff options
context:
space:
mode:
authordaniel0916 <theschokolps@gmail.com>2014-02-01 13:58:35 +0100
committerdaniel0916 <theschokolps@gmail.com>2014-02-01 13:58:35 +0100
commitb34ba6be7b35c75bf5272e366ea42f513b0cf501 (patch)
tree8ce50697e832b763f25c11c64abc6a286b79dc61 /MCServer/Plugins/APIDump
parentRemoved "player destroying" hook (diff)
downloadcuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar.gz
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar.bz2
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar.lz
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar.xz
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.tar.zst
cuberite-b34ba6be7b35c75bf5272e366ea42f513b0cf501.zip
Diffstat (limited to '')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerDestroyed.lua23
1 files changed, 23 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerDestroyed.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerDestroyed.lua
new file mode 100644
index 000000000..8e503658c
--- /dev/null
+++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerDestroyed.lua
@@ -0,0 +1,23 @@
+return
+{
+ HOOK_PLAYER_DESTROYED =
+ {
+ CalledWhen = "A player is about to get destroyed.",
+ DefaultFnName = "OnPlayerDestroyed", -- also used as pagename
+ Desc = [[
+ This function is called when a {{cPlayer|player}} is about to get destroyed. But the player isn't already destroyed.
+ ]],
+ Params =
+ {
+ { Name = "Player", Type = "{{cPlayer}}", Notes = "The destroyed player" },
+ },
+ Returns = [[
+ It's only for notification. Can't be returned.
+ ]],
+ }, -- HOOK_PLAYER_DESTROYED
+}
+
+
+
+
+