mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-04 21:50:28 -04:00
Add settings (#85)
* Add settings * Fix luacheck * Fix unupdatable sorting fields values (settings) * Better settings names * Better sort settings behaviour * Rework set_setting() * Rework settings storage * Better get sorting filters (inbox/outbox) * Fix reseting/saving settings
This commit is contained in:
parent
a8632255b3
commit
720029a73e
16 changed files with 322 additions and 103 deletions
|
@ -12,10 +12,9 @@ minetest.register_on_joinplayer(function(player)
|
|||
end
|
||||
end
|
||||
|
||||
if unreadcount > 0 then
|
||||
if unreadcount > 0 and mail.get_setting(name, "onjoin_notifications") then
|
||||
minetest.chat_send_player(name,
|
||||
minetest.colorize("#00f529", "(" .. unreadcount .. ") You have mail! Type /mail to read"))
|
||||
|
||||
end
|
||||
end, player:get_player_name())
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue