summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattes D <github@xoft.cz>2017-01-23 17:43:48 +0100
committerMattes D <github@xoft.cz>2017-01-28 10:31:04 +0100
commit01d9beee9ee60aa1ead52f7796c762a8372b9ca4 (patch)
tree6843b3231de64ffff73da0db34b12253a2b32f30
parentFixed ClientHandle:GetProtocolVersion returning wrong number. (diff)
downloadcuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar.gz
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar.bz2
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar.lz
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar.xz
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.tar.zst
cuberite-01d9beee9ee60aa1ead52f7796c762a8372b9ca4.zip
-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",