mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-04-30 09:39:20 +02:00
9 lines
307 B
Lua
9 lines
307 B
Lua
function onSay(player, words, param)
|
|
local uptime = getWorldUpTime()
|
|
|
|
local hours = math.floor(uptime / 3600)
|
|
local minutes = math.floor((uptime - (3600 * hours)) / 60)
|
|
player:sendTextMessage(MESSAGE_STATUS_CONSOLE_BLUE, "Uptime: " .. hours .. " hours and " .. minutes .. " minutes.")
|
|
return false
|
|
end
|