diff --git a/logic/terminal.lua b/logic/terminal.lua index 53a82e3..c8776f6 100644 --- a/logic/terminal.lua +++ b/logic/terminal.lua @@ -22,6 +22,7 @@ Local commands: - Output this message with 'help' - Switch to public use of buttons with 'pub' - Switch to private use of buttons with 'priv' +- Output techage version with 'vers' - Program a user button with 'set ' Example: 'set 1 ON cmd 1234 on' @@ -35,6 +36,7 @@ Local commands: - Output this message with 'help' - Switch to public use of buttons with 'pub' - Switch to private use of buttons with 'priv' +- Output techage version with 'vers' - Program a user button with 'set ' Example: 'set 1 ON cmd 1234 on' @@ -182,6 +184,9 @@ local function command(pos, command, player, is_ta4) meta:set_int("public", 0) output(pos, "$ "..command) output(pos, "Switched to private buttons!") + elseif cmnd == "vers" then + output(pos, "$ "..command) + output(pos, "Techage version = " .. techage.version) elseif cmnd == "connect" and data then output(pos, "$ "..command) if techage.not_protected(data, owner, owner) then