aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmojigit <55009343+Emojigit@users.noreply.github.com>2020-08-07 01:30:41 +0800
committerGitHub <noreply@github.com>2020-08-06 19:30:41 +0200
commitabfea69e5f68c0f2c946bfcd4444f8cb32e781cf (patch)
treeb9d6f361b91c7c48f39a11a5b11f20bd7607fc49
parentf92a393f6f949377b1d78630a8f7d24e78e6ff9d (diff)
downloadminetest-abfea69e5f68c0f2c946bfcd4444f8cb32e781cf.tar.gz
minetest-abfea69e5f68c0f2c946bfcd4444f8cb32e781cf.tar.bz2
minetest-abfea69e5f68c0f2c946bfcd4444f8cb32e781cf.zip
Change `last-login` command to show player name in output (#10263)
-rw-r--r--builtin/game/chat.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/builtin/game/chat.lua b/builtin/game/chat.lua
index aae811794..8131a6860 100644
--- a/builtin/game/chat.lua
+++ b/builtin/game/chat.lua
@@ -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,
})