summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2014-02-01 14:08:08 +0100
committerMattes D <github@xoft.cz>2014-02-01 14:08:08 +0100
commit33759197e97000e5be12d4b0daa593c54cdaed7b (patch)
treeb49b2d4e02f973755c7d8007fe1ba082a5666674 /MCServer
parentMerge pull request #613 from UltraCoderRU/master (diff)
parentAdded PlayerDestroyedHook Documentation (diff)
downloadcuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.gz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.bz2
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.lz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.xz
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.tar.zst
cuberite-33759197e97000e5be12d4b0daa593c54cdaed7b.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
+}
+
+
+
+
+