Debuggers: Added a plugin channel test with funny chars in data.
This commit is contained in:
parent
da92286da9
commit
7761f7e5b8
@ -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
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user