diff options
author | Alexander Harkness <me@bearbin.net> | 2020-03-23 13:24:31 +0100 |
---|---|---|
committer | Alexander Harkness <me@bearbin.net> | 2020-03-23 13:24:31 +0100 |
commit | ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b (patch) | |
tree | 3ec9052465d267d7d843ecfcd9c91c69bbc9bed3 /Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua | |
parent | Manual merge of #4498. (diff) | |
download | cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar.gz cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar.bz2 cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar.lz cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar.xz cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.tar.zst cuberite-ad1872f8cc59162a48cdb26fdd1dc8d1f8e6f15b.zip |
Diffstat (limited to 'Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua')
-rw-r--r-- | Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua b/Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua new file mode 100644 index 000000000..51b54705b --- /dev/null +++ b/Server/Plugins/APIDump/Hooks/OnPlayerCrouched.lua @@ -0,0 +1,18 @@ +return +{ + HOOK_PLAYER_CROUCHED = + { + CalledWhen = "Player crouched in the tick being currently processed.", + DefaultFnName = "OnPlayerCrouched", -- also used as pagename + Desc = [[ + This function is called in each server tick for each {{cPlayer|player}} that has crouched. + ]], + Params = + { + { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who has crouched." }, + }, + Returns = [[ + If the function returns false or no value, other plugins callbacks are called.</p> + ]], + }, -- HOOK_PLAYER_CROUCHED +}
\ No newline at end of file |