1
0
Fork 0
mirror of https://github.com/mt-mods/mail.git synced 2025-03-15 22:21:24 +00:00
mail/chatcommands.lua

10 lines
281 B
Lua

minetest.register_chatcommand("mail",{
description = "Open the mail interface",
func = function(name, param)
if #param > 0 then -- if param is not empty
mail.show_compose(name, param) -- make a new message
else
mail.show_mail_menu(name) -- show main menu
end
end
})