Skip to content
Permalink
Browse files

Nicer time setting logging

Now logs

ACTION[ServerThread]: player sets time to 6:03

instead of

ACTION[ServerThread]: player sets time to 6:3
  • Loading branch information...
est31 committed Jun 2, 2015
1 parent e479337 commit b8a8be9c86cf6249d7c1be1c01d27deb02bcb58c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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,
})

1 comment on commit b8a8be9

@nerzhul

This comment has been minimized.

Copy link
Member

commented on b8a8be9 Jun 6, 2015

👍

Please sign in to comment.
You can’t perform that action at this time.