Colorize match start messages (#713)

* add minetest.colorize

* Change colors
This commit is contained in:
-sniper- 2020-12-08 18:25:24 +01:00 committed by GitHub
parent 978c7ef641
commit 1683ba70a4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 9 additions and 8 deletions

View file

@ -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