Make target name coloured by team in bounty announcement
This commit is contained in:
parent
da9ab8ec15
commit
0e1525d282
2 changed files with 6 additions and 2 deletions
|
@ -1,2 +1,3 @@
|
||||||
|
ctf
|
||||||
ctf_stats
|
ctf_stats
|
||||||
irc?
|
irc?
|
||||||
|
|
|
@ -2,9 +2,12 @@ local bountied_player = nil
|
||||||
local bounty_score = 0
|
local bounty_score = 0
|
||||||
|
|
||||||
local function announce(name)
|
local function announce(name)
|
||||||
|
local _, tcolor = ctf_colors.get_color(name, ctf.player(name))
|
||||||
|
tcolor = tcolor:gsub("0x", "#")
|
||||||
minetest.chat_send_player(name,
|
minetest.chat_send_player(name,
|
||||||
minetest.colorize("#fff326", "The next person to kill " .. bountied_player ..
|
minetest.colorize("#fff326", "The next person to kill ") ..
|
||||||
" will receive " .. bounty_score .. " points!"))
|
minetest.colorize(tcolor, bountied_player) ..
|
||||||
|
minetest.colorize("#fff326", " will receive " .. bounty_score .. " points!"))
|
||||||
end
|
end
|
||||||
|
|
||||||
local function announce_all()
|
local function announce_all()
|
||||||
|
|
Loading…
Reference in a new issue