Events, Spawns, Source Servers, and many more!

User Tools

Site Tools


Sidebar

home

issues

downloads


bukkit plugins

windows 8 apps

windows phone apps


Maintaining these plugins takes a lot of work, so if your server is enriched by them please consider sending some love my way!

If you're penniless I'm also partial to TF2 items. Send any you don't want my way! STEAM id: coldandtired

If you don't know what TF2 is, then start playing! It's free and fun!

mobsistence:hooking-the-api

Here's an example of how to add the API to your plugin

private API getMobsistenceAPI()
{
    org.bukkit.plugin.Plugin mobsistencePlugin = Bukkit.getPluginManager().getPlugin("Mobsistence");
    if (mobsistencePlugin != null && mobsistencePlugin instanceof Mobsistence)
    {
        return ((Mobsistence)mobsistencePlugin).API;
    }
 
    return null;
}

Once you've done that you can store the returned API and use it later.

mobsistence/hooking-the-api.txt · Last modified: 2015/01/14 22:02 by sylian