diff options
author | Howaner <franzi.moos@googlemail.com> | 2014-08-16 18:49:24 +0200 |
---|---|---|
committer | Howaner <franzi.moos@googlemail.com> | 2014-08-16 18:49:24 +0200 |
commit | 6c8baf66c81e043710e70d8de584ab93d1cbbfc8 (patch) | |
tree | b2c69b5faf2f199e30bdf9c2ee3b6cd76a125ef7 /MCServer/Plugins/APIDump/Hooks | |
parent | Better OnPlayerMoving hook. (diff) | |
download | cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar.gz cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar.bz2 cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar.lz cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar.xz cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.tar.zst cuberite-6c8baf66c81e043710e70d8de584ab93d1cbbfc8.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks')
-rw-r--r-- | MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua index 2756529ef..4385bf94d 100644 --- a/MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua +++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua @@ -11,9 +11,11 @@ return Params = { { Name = "Player", Type = "{{cPlayer}}", Notes = "The player who has moved. The object already has the new position stored in it." }, + { Name = "OldPosition", Type = "{{Vector3d}}", Notes = "The old position." }, + { Name = "NewPosition", Type = "{{Vector3d}}", Notes = "The new position." }, }, Returns = [[ - If the function returns true, movement is prohibited. FIXME: The player's client is not informed.</p> + If the function returns true, movement is prohibited.</p> <p> If the function returns false or no value, other plugins' callbacks are called and finally the new position is permanently stored in the cPlayer object.</p> |