Skip to content

Adding support for your groups plugin

Edson Passos edited this page Jun 12, 2022 · 2 revisions

Adding support for TitansBattle is as simple as extending two classes and registering one of them.

Steps:

  1. Extending Group. (Example here)
  2. Extending GroupManager. (Example here)
  3. Fetch TitansBattle's instance and register your GroupManager:
@Override
public void onEnable() {
    TitansBattle tb = TitansBattle.getInstance();
    GroupManager gm = new YourGroupManager(tb);
    tb.setGroupManager(gm);
}