Debuggers: Added /clientversion command to display protocol version.
This commit is contained in:
parent
6b0c795655
commit
01d9beee9e
@ -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)
|
function HandleCompo(a_Split, a_Player)
|
||||||
-- Send one composite message to self:
|
-- Send one composite message to self:
|
||||||
local msg = cCompositeChat()
|
local msg = cCompositeChat()
|
||||||
|
@ -28,6 +28,12 @@ g_PluginInfo =
|
|||||||
Handler = HandleBlkCmd,
|
Handler = HandleBlkCmd,
|
||||||
HelpString = "Gets info about the block you are looking at"
|
HelpString = "Gets info about the block you are looking at"
|
||||||
},
|
},
|
||||||
|
["/clientversion"] =
|
||||||
|
{
|
||||||
|
Permission = "debuggers",
|
||||||
|
Handler = HandleClientVersionCmd,
|
||||||
|
HelpString = "Shows your client's protocol version",
|
||||||
|
},
|
||||||
["/compo"] =
|
["/compo"] =
|
||||||
{
|
{
|
||||||
Permission = "debuggers",
|
Permission = "debuggers",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user