mirror of
https://github.com/sys4-fr/server-nalc.git
synced 2024-11-14 14:30:34 +01:00
232b274c55
subgame + mods
21 lines
511 B
Lua
Executable File
21 lines
511 B
Lua
Executable File
|
|
-- Extended Ban Mod for Minetest
|
|
-- (C) 2013 Diego Martínez <kaeza>
|
|
-- See `LICENSE.txt' for details.
|
|
|
|
-- intr.lua: Internal functions.
|
|
|
|
-- NOTE: Do not use these from other mods; they may change without notice.
|
|
|
|
local function mklogger(type)
|
|
return function(fmt, ...) minetest.log(type, fmt:format(...)) end
|
|
end
|
|
|
|
xban._.INFO = mklogger("info")
|
|
xban._.WARN = mklogger("warning")
|
|
xban._.ACTION = mklogger("action")
|
|
|
|
function xban._.send(name, fmt, ...)
|
|
minetest.chat_send_player(name, (fmt:format(...)))
|
|
end
|