handler_messages.lua 237 B

12345678910
  1. -- get player messages request from webmail
  2. function mail.handlers.messages(playername)
  3. local messages = mail.getMessages(playername)
  4. mail.channel.send({
  5. type = "player-messages",
  6. playername = playername,
  7. data = messages
  8. })
  9. end