1
0
Fork 0

Make showing advancement chat messages into a setting

This commit is contained in:
Eliy21 2023-11-26 09:43:11 +00:00
parent 86da47b922
commit ce73ec3e8a
1 changed files with 3 additions and 1 deletions

View File

@ -217,7 +217,9 @@ function awards.unlock(name, award)
-- Get award
minetest.log("action", name.." has gotten award "..award)
minetest.chat_send_all(S("@1 has made the advancement @2", name, minetest.colorize(mcl_colors.GREEN, "[" .. (awdef.title or award) .. "]")))
if minetest.settings:get_bool("mcl_showAdvancementMessages", true) then
minetest.chat_send_all(S("@1 has made the advancement @2", name, minetest.colorize(mcl_colors.GREEN, "[" .. (awdef.title or award) .. "]")))
end
data.unlocked[award] = award
awards.save()