Skip to content
This repository was archived by the owner on Oct 11, 2020. It is now read-only.
MeLays edited this page Aug 4, 2017 · 4 revisions

MTTT Developer API

Getting the TTTApi Instance

  1. You need a softdepend or depend to MTTT in your plugin.yml
    depend: [MTTT]
    softdepend: [MTTT]
  2. Get your TTTApi Instance
TTTApi api;

public void onEnable(){
     ...
     if (Bukkit.getPluginManager().isLoaded("MTTT")){
          api = TTTApi.getInstance();
     }
     else{
          //MTTT not loaded/installed
     }
}

Clone this wiki locally