Change `last-login` command to show player name in output (#10263)

This commit is contained in:
1F616EMO 2020-08-07 01:30:41 +08:00 committed by Nils Dagsson Moskopp
parent 86807859e8
commit 858ae0dfdf
Signed by: erle
GPG Key ID: A3BC671C35191080
1 changed files with 2 additions and 2 deletions

View File

@ -1070,10 +1070,10 @@ core.register_chatcommand("last-login", {
local pauth = core.get_auth_handler().get_auth(param)
if pauth and pauth.last_login and pauth.last_login ~= -1 then
-- Time in UTC, ISO 8601 format
return true, "Last login time was " ..
return true, param.."'s last login time was " ..
os.date("!%Y-%m-%dT%H:%M:%SZ", pauth.last_login)
end
return false, "Last login time is unknown"
return false, param.."'s last login time is unknown"
end,
})