mirror of
https://github.com/mt-mods/mail.git
synced 2025-07-15 18:56:47 -04:00
storage rewrite wip
This commit is contained in:
parent
e08238f50e
commit
894e5df4b1
7 changed files with 62 additions and 148 deletions
4
mtt.lua
4
mtt.lua
|
@ -7,7 +7,7 @@ mtt.register("send mail", function(callback)
|
|||
mail.send({from = "player1", to = "player2", subject = "something", body = "blah"})
|
||||
|
||||
-- check the receivers inbox
|
||||
local list2 = mail.getPlayerInboxMessages("player2")
|
||||
assert(list2 ~= nil and #list2 > 0)
|
||||
local entry = mail.get_storage_entry("player2")
|
||||
assert(entry ~= nil and #entry.inbox > 0)
|
||||
callback()
|
||||
end)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue