mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-14 22:54:53 +02:00
Full Distribution
This commit is contained in:
8
data/talkactions/scripts/uptime.lua
Normal file
8
data/talkactions/scripts/uptime.lua
Normal file
@@ -0,0 +1,8 @@
|
||||
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
|
Reference in New Issue
Block a user