-
Notifications
You must be signed in to change notification settings - Fork 0
API
LagBug edited this page Jul 26, 2019
·
1 revision
Firstly, we need to initialize the API.
GiveawaysAPI api = new GiveawaysAPI();
After initializing the API, there are a few methods that you can use.
public List<Giveaway> getGiveaways() {
}
There are specific events which you can use as well.
@EventListener
public void onGiveawayEdit(GiveawayEditEvent e) {
}
@EventListener
public void onGiveawayEnd(GiveawayEndEvent e) {
}
@EventListener
public void onGiveawayEnter(GiveawayEnterEvent e) {
}
@EventListener
public void onGiveawayStart(GiveawayStartEvent e) {
}
@EventListener
public void onGiveawaysPluginReload(GiveawaysPluginReloadEvent e) {
}