Thank you for reporting this bug... I quickly analyzed the Baiak 1.5 server and noticed that the 'MESSAGE_STATUS_BLUE_LIGHT' function is not in the source code... So, I had to talk to him on Discord, and he made the change. He tested it, and it's functioning perfectly, 100%. See the solution here..
The 'MESSAGE_STATUS_BLUE_LIGHT' function was implemented in the TFS 1.3 8.6 source, and I just adapted it for TFS 1.5. I had forgotten about this in the login.lua file... but everything is OK
look for these lines.
Lua:
function onLogin(player)
local loginStr = "Welcome to {" .. configManager.getString(configKeys.SERVER_NAME) .. "}!"
if player:getLastLoginSaved() <= 0 then
loginStr = loginStr .. " Please choose your outfit."
player:sendOutfitWindow()
else
if loginStr ~= "" then
player:sendTextMessage(MESSAGE_STATUS_BLUE_LIGHT, loginStr)
end
loginStr = string.format("Your last visit was on {%s}.", os.date("%a %b %d %X %Y", player:getLastLoginSaved()))
end
player:sendTextMessage(MESSAGE_STATUS_BLUE_LIGHT, loginStr)
change to.
Lua:
function onLogin(player)
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()
else
if loginStr ~= "" then
player:sendTextMessage(MESSAGE_STATUS_DEFAULT, loginStr)
end
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)