summaryrefslogtreecommitdiffstats
path: root/MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
diff options
context:
space:
mode:
authormadmaxoft <github@xoft.cz>2013-12-01 16:34:04 +0100
committermadmaxoft <github@xoft.cz>2013-12-02 22:36:59 +0100
commite07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7 (patch)
tree638b1ff4583e7ec85f260ab9c98d8cfd5bf9c911 /MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
parentMerge pull request #392 from SamJBarney/master (diff)
downloadcuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar.gz
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar.bz2
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar.lz
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar.xz
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.tar.zst
cuberite-e07c54f7f80fc6fe6f2abd8f81b45c8d6dc4e2d7.zip
Diffstat (limited to 'MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua')
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua b/MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
index d767b449d..de9b3662c 100644
--- a/MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
+++ b/MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua
@@ -21,6 +21,9 @@ return
{ Name = "BlockY", Type = "number", Notes = "Y-coord of the block" },
{ Name = "BlockZ", Type = "number", Notes = "Z-coord of the block" },
{ Name = "BlockFace", Type = "number", Notes = "Face of the block upon which the player interacted. One of the BLOCK_FACE_ constants" },
+ { Name = "CursorX", Type = "number", Notes = "X-coord of the mouse crosshair on the block" },
+ { Name = "CursorY", Type = "number", Notes = "Y-coord of the mouse crosshair on the block" },
+ { Name = "CursorZ", Type = "number", Notes = "Z-coord of the mouse crosshair on the block" },
},
Returns = [[
If the function returns false or no value, MCServer calls other plugins' callbacks and finally sends