Skip to content
LagBug edited this page Jul 19, 2019 · 1 revision

Initializing

Firstly, we need to initialize the API.

EmailerAPI api = new EmailerAPI();

Methods

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();
}

Events

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();
}
Clone this wiki locally