mirror of
https://github.com/mt-mods/mail.git
synced 2025-03-15 06:01:25 +00:00
10 lines
No EOL
261 B
Lua
10 lines
No EOL
261 B
Lua
|
|
mtt.register("send mail", function(callback)
|
|
-- send a mail
|
|
mail.send("player1", "player2", "something", "blah")
|
|
|
|
-- check the receivers inbox
|
|
local list2 = mail.getMessages("player2")
|
|
assert(list2 ~= nil and #list2 > 0)
|
|
callback()
|
|
end) |