Receiving items in mail

This commit is contained in:
Benjamin Elsdon
2022-04-25 13:51:19 +08:00
parent a548fe6c52
commit 9bf94f9539
9 changed files with 7662 additions and 45 deletions

View File

@@ -24,7 +24,7 @@ public class SendMailCommand implements CommandHandler {
sender = Grasscutter.getGameServer().getPlayerByUid(7006);
}
sender.sendMail(new Mail(new Mail.MailContent("Test", "This is a test"),
new ArrayList<Mail.MailItem>(){{add(new Mail.MailItem(1062));}},
new ArrayList<Mail.MailItem>(){{add(new Mail.MailItem(23411 ));}},
Instant.now().getEpochSecond() + 4000));
sender.dropMessage("Check your inbox");