mail/chatcommands.lua

11 lines
281 B
Lua
Raw Normal View History

2019-09-16 09:06:54 +03:00
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
2019-09-16 09:06:54 +03:00
end
})