Add logger
parent
a87c06ae0d
commit
8bff3bf0b1
11
init.lua
11
init.lua
|
@ -1 +1,12 @@
|
||||||
-- spawnpoint/init.lua
|
-- 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
|
||||||
|
|
Loading…
Reference in New Issue