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

Initializing

Firstly, we need to initialize the API.

GiveawaysAPI api = new GiveawaysAPI();

Methods

After initializing the API, there are a few methods that you can use.

public List<Giveaway> getGiveaways() {

}

Events

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