}// TODO: setup a way for the mail notification to show up when someone receives mail when they were offline
}
publicbooleandeleteMail(intmailId){
Mailmessage=getMail(mailId);
if(message!=null){
intindex=getMailId(message);
message.expireTime=(int)Instant.now().getEpochSecond();// Just set the mail as expired for now. I don't want to implement a counter specifically for an account...
getTodayMoonCard();// The timer works at 0:0, some users log in after that, use this method to check if they have received a reward today or not. If not, send the reward.
session.send(newPacketPlayerEnterSceneNotify(this));// Enter game world