Used colored chat messages in various mods
This commit is contained in:
parent
0bca42e392
commit
ccd40285f0
4 changed files with 4 additions and 4 deletions
|
@ -51,7 +51,7 @@ minetest.register_globalstep(function(dtime)
|
|||
|
||||
--Warn player if he/she has less than WARN_TIME seconds to move or be kicked
|
||||
if players[playerName]["lastAction"] + MAX_INACTIVE_TIME - WARN_TIME < currGameTime then
|
||||
minetest.chat_send_player(playerName, "Warning, you have " .. tostring(players[playerName]["lastAction"] + MAX_INACTIVE_TIME - currGameTime) .. " seconds to move or be kicked")
|
||||
minetest.chat_send_player(playerName, minetest.colorize(#FF8C00,"Warning, you have " .. tostring(players[playerName]["lastAction"] + MAX_INACTIVE_TIME - currGameTime) .. " seconds to move or be kicked"))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -70,7 +70,7 @@ minetest.register_on_joinplayer(function(player)
|
|||
if #inbox > 0 then
|
||||
minetest.after(10, function()
|
||||
minetest.chat_send_player(player:get_player_name(),
|
||||
"(" .. #inbox .. ") You have mail! Type /inbox to recieve")
|
||||
minetest.colorize(#00FF00,"(" .. #inbox .. ") You have mail! Type /inbox to recieve"))
|
||||
end)
|
||||
end
|
||||
end)
|
||||
|
|
|
@ -64,7 +64,7 @@ minetest.register_chatcommand("report", {
|
|||
local toname = player:get_player_name()
|
||||
if minetest.check_player_privs(toname, {kick = true, ban = true}) then
|
||||
table.insert(mods, toname)
|
||||
minetest.chat_send_player(toname, "-!- " .. name .. " reported: " .. param)
|
||||
minetest.chat_send_player(toname, minetest.colorize(#FFFF00,"-!- " .. name .. " reported: " .. param))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ minetest.register_on_punchplayer(function(player, hitter,
|
|||
|
||||
if hitter and respawn_immunity.is_immune(hitter) then
|
||||
minetest.chat_send_player(hitter:get_player_name(),
|
||||
"Your immunity has ended because you attacked a player")
|
||||
minetest.colorize(#FF8C00,"Your immunity has ended because you attacked a player"))
|
||||
immune_players[hitter:get_player_name()] = nil
|
||||
respawn_immunity.update_effects(hitter)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue