1
0

Debuggers: Added /clientversion command to display protocol version.

This commit is contained in:
Mattes D 2017-01-23 17:43:48 +01:00
parent 6b0c795655
commit 01d9beee9e
2 changed files with 15 additions and 0 deletions

View File

@ -1567,6 +1567,15 @@ end
function HandleClientVersionCmd(a_Split, a_Player)
a_Player:SendMessage("Your client version number is " .. a_Player:GetClientHandle():GetProtocolVersion() ..".")
return true
end
function HandleCompo(a_Split, a_Player)
-- Send one composite message to self:
local msg = cCompositeChat()

View File

@ -28,6 +28,12 @@ g_PluginInfo =
Handler = HandleBlkCmd,
HelpString = "Gets info about the block you are looking at"
},
["/clientversion"] =
{
Permission = "debuggers",
Handler = HandleClientVersionCmd,
HelpString = "Shows your client's protocol version",
},
["/compo"] =
{
Permission = "debuggers",