mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-22 10:31:06 +01:00
Make showing advancement chat messages into a setting (#4032)
Reviewed-on: https://git.minetest.land/MineClone2/MineClone2/pulls/4032 Reviewed-by: the-real-herowl <the-real-herowl@noreply.git.minetest.land> Co-authored-by: Eliy21 <eliy21@noreply.git.minetest.land> Co-committed-by: Eliy21 <eliy21@noreply.git.minetest.land>
This commit is contained in:
parent
cd40861b3b
commit
b57f6be81d
2 changed files with 6 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -73,6 +73,9 @@ mcl_elytra_rocket_speed (Elytra rocket speed cap) float 3.5 2.0 5.5
|
|||
# If enabled, chat messages are shown to everyone when a player dies.
|
||||
mcl_showDeathMessages (Show death messages) bool true
|
||||
|
||||
# If enabled, chat messages are shown to everyone when a player makes an advancement.
|
||||
mcl_showAdvancementMessages (Show advancement messages) bool true
|
||||
|
||||
# If enabled, the recipe book will progressively be filled with new recipes that can be crafted from all items you ever have had in your inventory.
|
||||
# Recommended for new players and for a spoiler-free gameplay experience.
|
||||
# If disabled, all recipes will be shown.
|
||||
|
|
Loading…
Reference in a new issue