iteration

This commit is contained in:
2023-10-08 02:18:41 -04:00
parent eb55a5d783
commit c918c2da39
3 changed files with 74 additions and 9 deletions

View File

@@ -6,7 +6,20 @@ if args[1] == nil then
end
local action = args[1]
local server = "auth.layla.mc"
settings.define("auth.token", {
description = "Authentication token",
type = "string",
default = ""
})
settings.define("auth.server", {
description = "Authentication server",
type = "string",
default = "auth.box"
})
local server = settings.get("auth.server")
function lns_lookup(hostname)
local data = {
@@ -65,8 +78,8 @@ if action == "login" then
end
end
settings.set("auth.token", token)
io.write("Logged in as " .. username .. "\n")
io.write("Token: " .. token .. "\n")
return
end