Developers
UltimateArenaAPI
Note: The UltimateArena API will be completely overhauled with the release of 3.0. Among the changes planned are custom arena types and more utilization of the Bukkit event API.
By using the method UltimateArenaAPI.hookIntoUA(), you can hook into many different methods (about 10 of them) . If there is a method that you would like added, send me a quick PM!
Example Code
You could do something like this in your main class
private UltimateArenaAPI ua; private void hookIntoUA() { PluginManager pm = getServer().getPluginManager(); if (pm.isPluginEnabled("UltimateArena")) { this.ua = UltimateArenaAPI.hookIntoUA(this); } } public UltimateArenaAPI getUltimateArena() { return ua; }
Then use the API somewhere else, like this
ArenaPlayer ap = plugin.getUltimateArena().getArenaPlayer(player); Arena arena = ap.getArena();