Added GetMailItemReq/Rsp & PacketMailChangeNotify

Mail still doesn't work for whatever reason. I also added a temporary SendMailCommand just to receive PacketMailChangeNotify.
I feel like I'm about to lose my mind.
This commit is contained in:
Benjamin Elsdon
2022-04-22 19:02:05 +08:00
parent 346652cf5b
commit e24de95d29
6 changed files with 147 additions and 12 deletions

View File

@@ -0,0 +1,19 @@
package emu.grasscutter.command.commands;
import emu.grasscutter.command.Command;
import emu.grasscutter.command.CommandHandler;
import emu.grasscutter.game.GenshinPlayer;
import emu.grasscutter.server.packet.send.PacketMailChangeNotify;
import java.util.List;
@Command(label = "sendmail", usage = "sendmail")
public class SendMailCommand implements CommandHandler {
@Override
public void execute(GenshinPlayer sender, List<String> args) {
// This is literally so I can test the notification
sender.getSession().send(new PacketMailChangeNotify(sender));
sender.dropMessage("Check your inbox");
}
}