API

You can hook into SimpleClans plugin like so:

private SCCore core;

@Override
public void onEnable()
{
    if (!hookSimpleClans()) {
        //SimpleClans was not found
    }
}

private boolean hookSimpleClans()
    {
        try {
            for (Plugin plugin : getServer().getPluginManager().getPlugins()) {
                if (plugin instanceof SCCore) {
                    this.core = (SCCore) plugin;
                    return true;
                }
            }
        } catch (NoClassDefFoundError e) {
            return false;
        }

        return false;
}

public ClanPlayerManager getClanPlayerManager()
 {
        return this.core.getClanPlayerManager();
 }

public ClanManager getClanManager()
 {
        return this.core.getClanManager();
 }
  • Every player has a ClanPlayer object which holds all his information, including his clan, and can be used to perform various operations on the player.
  • The Clan object holds all the information for a clan and can be used to perform various operations on the clan.
  • The ClanManager holds all the Clans and contains methods that allow you to retrieve them.
  • The ClanPlayerManager holds all the players and contains methods that allow you to retrieve them.
  • Everytime you edit a clan or player call clanplayer.update(); or clan.update();

Full Javadoc

http://bit.ly/SC-javadocs