Skip to main content

TARDIS API

The TARDIS plugin includes a publically accessible API for plugin developers to use.

As of TARDIS v3.2-beta-1 the API can be accessed in your plugin like so:

public class ExamplePlugin extends JavaPlugin {
private TardisAPI tardisAPI;
private TARDIS tardis;

@Override
public void onEnable() {
PluginManager pm = getServer().getPluginManager();
// Get TARDIS
Plugin p = pm.getPlugin("TARDIS");
if (p == null) {
System.err.println("Cannot find TARDIS!");
pm.disablePlugin(this);
return;
}
tardis = (TARDIS) p;
// get the API
tardisAPI = tardis.getTardisAPI();
}

public TardisAPI getTardisAPI() {
return tardisAPI;
}
}

You can auto-generate a plugin that hooks into the TARDIS API at the Spigot plugin starter page. Make sure to select the TARDIS API checkbox.

The Java Doc for the API is available here: TARDIS API docs

An extensive working example plugin can be found here: TARDISVortexManipulator source code