-
Notifications
You must be signed in to change notification settings - Fork 3
API
LagBug edited this page Jul 19, 2019
·
1 revision
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();
}