summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Server/Plugins/Debuggers/Debuggers.lua9
-rw-r--r--Server/Plugins/Debuggers/Info.lua6
2 files changed, 15 insertions, 0 deletions
diff --git a/Server/Plugins/Debuggers/Debuggers.lua b/Server/Plugins/Debuggers/Debuggers.lua
index c433148ca..2b9ed1bf0 100644
--- a/Server/Plugins/Debuggers/Debuggers.lua
+++ b/Server/Plugins/Debuggers/Debuggers.lua
@@ -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()
diff --git a/Server/Plugins/Debuggers/Info.lua b/Server/Plugins/Debuggers/Info.lua
index 028f7a70b..8b2e7017b 100644
--- a/Server/Plugins/Debuggers/Info.lua
+++ b/Server/Plugins/Debuggers/Info.lua
@@ -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",