Add logger

master
octacian 2017-03-08 12:34:22 -08:00
parent a87c06ae0d
commit 8bff3bf0b1
1 changed files with 11 additions and 0 deletions

View File

@ -1 +1,12 @@
-- spawnpoint/init.lua
spawnpoint = {}
local path = minetest.get_worldpath().."/spawnpoint.conf"
-- [function] Log
function spawnpoint.log(content, log_type)
if not content then return false end
if log_type == nil then log_type = "action" end
minetest.log(log_type, "[HUD Plus] "..content)
end