diff options
author | Tycho <work.tycho+git@gmail.com> | 2014-02-02 15:56:07 +0100 |
---|---|---|
committer | Tycho <work.tycho+git@gmail.com> | 2014-02-02 15:56:07 +0100 |
commit | 0b0aa5554fbb0179e108f0473f4bf732340d1b95 (patch) | |
tree | 36239f98c1c8417483af6a13fed586c32dda811c /MCServer | |
parent | Changed Signiture of OnUpdate (diff) | |
parent | Fixed #620 (diff) | |
download | cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.gz cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.bz2 cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.lz cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.xz cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.tar.zst cuberite-0b0aa5554fbb0179e108f0473f4bf732340d1b95.zip |
Diffstat (limited to 'MCServer')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnPlayerDestroyed.lua | 23 |
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 +} + + + + + |