mirror of
https://github.com/Grasscutters/Grasscutter.git
synced 2025-12-17 09:25:06 +01:00
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:
@@ -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");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user