diff --git a/homedecor_inbox/init.lua b/homedecor_inbox/init.lua index 7998fd6b..728ef2f6 100644 --- a/homedecor_inbox/init.lua +++ b/homedecor_inbox/init.lua @@ -79,7 +79,9 @@ homedecor.register("inbox", { if inv:room_for_item("main", stack) then return -1 else - core.chat_send_player(player:get_player_name(), S("This mailbox is full.")) + if core.settings:get_bool("homedecor.verbose_messages", false) then + core.chat_send_player(player:get_player_name(), S("This mailbox is full.")) + end return 0 end end diff --git a/settingtypes.txt b/settingtypes.txt new file mode 100644 index 00000000..e10ffdb2 --- /dev/null +++ b/settingtypes.txt @@ -0,0 +1,3 @@ + +# Enables extra messages to players for certain actions. +homedecor.verbose_messages (Verbose messages) bool false