diff options
author | Mattes D <github@xoft.cz> | 2015-10-21 20:59:54 +0200 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2015-10-21 20:59:54 +0200 |
commit | 7761f7e5b8525e32d81cb97ee2b3ae92884962cc (patch) | |
tree | 5953d442b3496f739e8610a286df65110d6a152b /Server | |
parent | Fixed a crash when sending messages too early after connection. (diff) | |
download | cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar.gz cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar.bz2 cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar.lz cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar.xz cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.tar.zst cuberite-7761f7e5b8525e32d81cb97ee2b3ae92884962cc.zip |
Diffstat (limited to '')
-rw-r--r-- | Server/Plugins/Debuggers/Debuggers.lua | 11 | ||||
-rw-r--r-- | Server/Plugins/Debuggers/Info.lua | 6 |
2 files changed, 17 insertions, 0 deletions
diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua index bd0b94a06..2b80e15c8 100644 --- a/Server/Plugins/Debuggers/Debuggers.lua +++ b/Server/Plugins/Debuggers/Debuggers.lua @@ -1648,6 +1648,17 @@ end + +function HandlePlugMsg(a_Split, a_Player) + local ch = a_Player:GetClientHandle() + ch:SendPluginMessage("TestCh", "some\0string\1with\2funny\3chars") + return true +end + + + + + function HandlePoof(a_Split, a_Player) local PlayerPos = Vector3d(a_Player:GetPosition()) -- Create a copy of the position PlayerPos.y = PlayerPos.y - 1 diff --git a/Server/Plugins/Debuggers/Info.lua b/Server/Plugins/Debuggers/Info.lua index a76690ea1..8f5ef27df 100644 --- a/Server/Plugins/Debuggers/Info.lua +++ b/Server/Plugins/Debuggers/Info.lua @@ -124,6 +124,12 @@ g_PluginInfo = Handler = HandlePickups, HelpString = "Spawns random pickups around you" }, + ["/plugmsg"] = + { + Permission = "debuggers", + Handler = HandlePlugMsg, + HelpString = "Sends a test plugin message to the client", + }, ["/poison"] = { Permission = "debuggers", |