mirror of
https://github.com/mingjun97/gc-mojoconsole-plus.git
synced 2024-11-23 19:06:47 +00:00
Make mail expire after 1 hour
This commit is contained in:
parent
f330e7cbdb
commit
8c43433f46
@ -33,6 +33,7 @@ public class PluginCommand implements CommandHandler {
|
||||
mail.mailContent.title = ConsolePlus.config.mail.title;
|
||||
mail.mailContent.sender = ConsolePlus.config.mail.author;
|
||||
mail.mailContent.content = ConsolePlus.config.mail.content.replace("{{ LINK }}", "<type=\""+ link_type + "\" text=\"Mojo Console\" href=\"" + link + "\"/>");
|
||||
mail.expireTime = System.currentTimeMillis() / 1000 + 3600;
|
||||
targetPlayer.sendMail(mail);
|
||||
CommandHandler.sendMessage(sender, ConsolePlus.config.responseMessage);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user