mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-09 03:50:19 +01:00
232b274c55
subgame + mods
20 lines
404 B
Lua
20 lines
404 B
Lua
if riesenpilz.info then
|
|
function riesenpilz.inform(msg, spam, t)
|
|
if spam <= riesenpilz.max_spam then
|
|
local info
|
|
if t then
|
|
info = string.format("[riesenpilz] "..msg.." after ca. %.2fs", os.clock() - t)
|
|
else
|
|
info = "[riesenpilz] "..msg
|
|
end
|
|
print(info)
|
|
if riesenpilz.inform_all then
|
|
minetest.chat_send_all(info)
|
|
end
|
|
end
|
|
end
|
|
else
|
|
function riesenpilz.inform()
|
|
end
|
|
end
|