Debuggers: Added /clientversion command to display protocol version.
This commit is contained in:
parent
6b0c795655
commit
01d9beee9e
Server/Plugins/Debuggers
@ -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()
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user