diff options
author | madmaxoft <github@xoft.cz> | 2014-01-09 14:26:44 +0100 |
---|---|---|
committer | madmaxoft <github@xoft.cz> | 2014-01-09 14:26:44 +0100 |
commit | 00af5d4d6e26ad0d48085d7204a3b8d42b34edac (patch) | |
tree | f6b4c5b9ac299ae84554227e1bef026e101eb5a4 /MCServer/Plugins/Debuggers | |
parent | Exported cClientHandle::SendPluginMessage() to Lua. (diff) | |
download | cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar.gz cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar.bz2 cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar.lz cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar.xz cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.tar.zst cuberite-00af5d4d6e26ad0d48085d7204a3b8d42b34edac.zip |
Diffstat (limited to 'MCServer/Plugins/Debuggers')
-rw-r--r-- | MCServer/Plugins/Debuggers/Debuggers.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/MCServer/Plugins/Debuggers/Debuggers.lua b/MCServer/Plugins/Debuggers/Debuggers.lua index 7b43b6c20..8512fbd5f 100644 --- a/MCServer/Plugins/Debuggers/Debuggers.lua +++ b/MCServer/Plugins/Debuggers/Debuggers.lua @@ -966,6 +966,23 @@ end function OnPluginMessage(a_Client, a_Channel, a_Message) LOGINFO("Received a plugin message from client " .. a_Client:GetUsername() .. ": channel '" .. a_Channel .. "', message '" .. a_Message .. "'"); + + if (a_Channel == "REGISTER") then + if (a_Message:find("WECUI")) then + -- The client has WorldEditCUI mod installed, test the comm by sending a few WECUI messages: + --[[ + WECUI messages have the following generic format: + <shape>|<params> + If shape is p (cuboid selection), the params are sent individually for each corner click and have the following format: + <point-index>|<x>|<y>|<z>|<volume> + point-index is 0 or 1 (lclk / rclk) + volume is the 3D volume of the current cuboid selected (all three coords' deltas multiplied), including the edge blocks; -1 if N/A + --]] + -- Select a 51 * 51 * 51 block cuboid: + a_Client:SendPluginMessage("WECUI", "p|0|50|50|50|-1"); + a_Client:SendPluginMessage("WECUI", "p|1|100|100|100|132651"); -- 132651 = 51 * 51 * 51 + end + end end |