From 5fc68d86815779b7e8a1907bf507496c62804c44 Mon Sep 17 00:00:00 2001 From: Zbizu Date: Wed, 3 Nov 2021 14:07:53 +0100 Subject: [PATCH] updating login message time format more up to date format for "your last visit" message --- data/creaturescripts/scripts/login.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/data/creaturescripts/scripts/login.lua b/data/creaturescripts/scripts/login.lua index f42cad9614..e3b1b2e25a 100644 --- a/data/creaturescripts/scripts/login.lua +++ b/data/creaturescripts/scripts/login.lua @@ -1,5 +1,6 @@ function onLogin(player) - local loginStr = "Welcome to " .. configManager.getString(configKeys.SERVER_NAME) .. "!" + local serverName = configManager.getString(configKeys.SERVER_NAME) + local loginStr = "Welcome to " .. serverName .. "!" if player:getLastLoginSaved() <= 0 then loginStr = loginStr .. " Please choose your outfit." player:sendOutfitWindow() @@ -8,7 +9,7 @@ function onLogin(player) player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr) end - loginStr = string.format("Your last visit was on %s.", os.date("%a %b %d %X %Y", player:getLastLoginSaved())) + loginStr = string.format("Your last visit in %s: %s.", serverName, os.date("%d %b %Y %X", player:getLastLoginSaved())) end player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)