9 lines
389 B
Lua
Raw Normal View History

2020-10-17 11:11:22 +02:00
core.register_on_receiving_chat_message(function(message)
if message:sub(1, 1) == "#" and core.settings:get_bool("ignore_status_messages") ~= false then
return true
elseif message:find('\1b@mcl_death_messages\1b') and core.settings:get_bool("mark_deathmessages") ~= false then
core.display_chat_message(core.colorize("#F25819", "[Deathmessage] ") .. message)
return true
end
end)