Skip to content

Commit abfea69

Browse files
authored
Change last-login command to show player name in output (#10263)
1 parent f92a393 commit abfea69

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

builtin/game/chat.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -1070,10 +1070,10 @@ core.register_chatcommand("last-login", {
10701070
local pauth = core.get_auth_handler().get_auth(param)
10711071
if pauth and pauth.last_login and pauth.last_login ~= -1 then
10721072
-- Time in UTC, ISO 8601 format
1073-
return true, "Last login time was " ..
1073+
return true, param.."'s last login time was " ..
10741074
os.date("!%Y-%m-%dT%H:%M:%SZ", pauth.last_login)
10751075
end
1076-
return false, "Last login time is unknown"
1076+
return false, param.."'s last login time is unknown"
10771077
end,
10781078
})
10791079

0 commit comments

Comments
 (0)