Skip to content

ClanAPI ClanCreateEvent

MathiasMC edited this page Dec 20, 2020 · 3 revisions
You can listen on the event(dont use execute if you listen) or create your own with the execute(); to execute the action, getResponse(); returns state of the action
Takes one "ClanPlayer", name of the clan

ClanCreateEvent clanCreateEvent = new ClanCreateEvent(clanPlayer, name, cost);
clanCreateEvent.execute();

@EventHandler
public void onEvent(ClanCreateEvent e) {
  switch (e.getResponse()) {
  case EXISTS:

    break;
  case NAME:

    break;
  case ENOUGH:

    break;
  case SUCCESS:

    break;
  }
}

Clone this wiki locally