mail/webmail/handler_messages.lua
2020-04-23 10:00:28 +02:00

10 lines
237 B
Lua

-- get player messages request from webmail
function mail.handlers.messages(playername)
local messages = mail.getMessages(playername)
mail.channel.send({
type = "player-messages",
playername = playername,
data = messages
})
end