summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins
diff options
context:
space:
mode:
authorTycho <work.tycho+git@gmail.com>2014-02-02 18:11:53 +0100
committerTycho <work.tycho+git@gmail.com>2014-02-02 18:11:53 +0100
commit1e4e6c4619696e95b7b3f19650fe32c6a42d18b6 (patch)
tree9e8416c008a2e8b4f5f86d30de0224f9021b40a1 /MCServer/Plugins
parentRemoved register keyword from Messinne Twister (diff)
parentFixed dark oak and acacia placement. (diff)
downloadcuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar.gz
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar.bz2
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar.lz
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar.xz
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.tar.zst
cuberite-1e4e6c4619696e95b7b3f19650fe32c6a42d18b6.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
+}
+
+
+
+
+