diff options
author | Mattes D <github@xoft.cz> | 2014-08-16 22:29:41 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2014-08-16 22:29:41 +0200 |
commit | e045a25e10e1aff47c35fae44c6b585df061c612 (patch) | |
tree | b2c69b5faf2f199e30bdf9c2ee3b6cd76a125ef7 /MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua | |
parent | Merge pull request #1308 from mc-server/logger (diff) | |
parent | Updated HOOK_PLAYER_MOVING documentation. (diff) | |
download | cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.gz cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.bz2 cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.lz cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.xz cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.tar.zst cuberite-e045a25e10e1aff47c35fae44c6b585df061c612.zip |
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnPlayerMoving.lua')
-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> |