summaryrefslogtreecommitdiffstats
path: root/Server
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--Server/Plugins/Debuggers/Debuggers.lua11
-rw-r--r--Server/Plugins/Debuggers/Info.lua6
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",