Skip to content

Hooking into AuthMe

ljacqu edited this page Feb 27, 2016 · 4 revisions

A technical description for plugin developers on how to interact with AuthMe.

API

We offer an API for performing actions and queries in AuthMe, see NewAPI. You can get the NewAPI object the following way:

import fr.xephi.authme.api.NewAPI;
// ...
NewAPI authmeApi = NewAPI.getInstance();

The individual methods are described in the Javadoc (see link above).

Events

Before or after various actions, we throw an Event you can listen to in your plugin. All AuthMe events extend the CustomEvent class. You can see a list of all events and their hierarchy here. All event classes are described with Javadoc.

Note that not all events can be canceled—only the ones extending Bukkit's Cancellable interface.