summaryrefslogtreecommitdiffstats
path: root/MCServer
diff options
context:
space:
mode:
authorSamuel Barney <samjbarney@gmail.com>2013-12-05 15:32:19 +0100
committerSamuel Barney <samjbarney@gmail.com>2013-12-05 15:32:19 +0100
commit8acfe21503f4b4fdccd03d0927ec8a11cd6457ec (patch)
tree1ea90086621fc11d433cd94ccd635d54c5a4380a /MCServer
parentMade suggested changes (diff)
parentProtoProxy: Fixed metadata parsing. (diff)
downloadcuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.gz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.bz2
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.lz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.xz
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.tar.zst
cuberite-8acfe21503f4b4fdccd03d0927ec8a11cd6457ec.zip
Diffstat (limited to 'MCServer')
-rw-r--r--MCServer/.gitignore4
-rw-r--r--MCServer/Plugins/APIDump/Hooks/OnPlayerRightClick.lua3
2 files changed, 7 insertions, 0 deletions
diff --git a/MCServer/.gitignore b/MCServer/.gitignore
index c03bcbe99..1fed134fe 100644
--- a/MCServer/.gitignore
+++ b/MCServer/.gitignore
@@ -1,4 +1,7 @@
*.exe
+*.dll
+*.exp
+*.lib
*.ini
MCServer
logs
@@ -20,3 +23,4 @@ valgrind.log
motd.txt
*.deuser
*.dmp
+*.xml
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