mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2025-07-04 17:10:24 +02:00
initial commit
subgame + mods
This commit is contained in:
19
mods/riesenpilz/functions.lua
Normal file
19
mods/riesenpilz/functions.lua
Normal file
@ -0,0 +1,19 @@
|
||||
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
|
Reference in New Issue
Block a user