From b8a8be9c86cf6249d7c1be1c01d27deb02bcb58c Mon Sep 17 00:00:00 2001 From: est31 Date: Tue, 2 Jun 2015 06:45:21 +0200 Subject: Nicer time setting logging Now logs ACTION[ServerThread]: player sets time to 6:03 instead of ACTION[ServerThread]: player sets time to 6:3 --- builtin/game/chatcommands.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'builtin/game') diff --git a/builtin/game/chatcommands.lua b/builtin/game/chatcommands.lua index fbc91ef01..d5d9c3d25 100644 --- a/builtin/game/chatcommands.lua +++ b/builtin/game/chatcommands.lua @@ -713,7 +713,7 @@ core.register_chatcommand("time", { return false, "Invalid minute (must be between 0 and 59 inclusive)." end core.set_timeofday((hour * 60 + minute) / 1440) - core.log("action", name .. " sets time to " .. hour .. ":" .. minute) + core.log("action", ("%s sets time to %d:%02d"):format(name, hour, minute)) return true, "Time of day changed." end, }) -- cgit v1.2.3