Firstly, we need to initialize the API.
EmailerAPI api = new EmailerAPI();
After initializing the API, there are a few methods that you can use.
public Map<OfflinePlayer, EmailAddress> getVerified() { return plugin.getVerified(); } public Map<OfflinePlayer, String> getPending() { return plugin.getPending(); } public Session getSession() { return plugin.getSession(); }
There are specific events which you can use as well.
@EventListener public void onEmailSend(EmailSendEvent e) { Emailer email = e.getEmail(); } @EventListener public void onPlayerVerify(PlayerVerifyEvent e) { Player p = e.getPlayer(); }
There was an error while loading. Please reload this page.