Used colored chat messages in various mods

This commit is contained in:
Anand S 2018-04-06 15:50:35 +05:30 committed by rubenwardy
parent 0bca42e392
commit ccd40285f0
4 changed files with 4 additions and 4 deletions

View file

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