Colorize match start messages (#713)
* add minetest.colorize * Change colors
This commit is contained in:
parent
978c7ef641
commit
1683ba70a4
3 changed files with 9 additions and 8 deletions
|
@ -349,9 +349,10 @@ local function place_map(map)
|
|||
end
|
||||
|
||||
minetest.after(2, function()
|
||||
local msg = "Map: " .. map.name .. " by " .. map.author
|
||||
local msg = (minetest.colorize("#fcdb05", "Map: ") .. minetest.colorize("#f49200", map.name) ..
|
||||
minetest.colorize("#fcdb05", " by ") .. minetest.colorize("#f49200", map.author))
|
||||
if map.hint then
|
||||
msg = msg .. "\n" .. map.hint
|
||||
msg = msg .. "\n" .. minetest.colorize("#f49200", map.hint)
|
||||
end
|
||||
minetest.chat_send_all(msg)
|
||||
if minetest.global_exists("irc") and irc.connected then
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue