Search in sources :

Example 1 with AbstractItemDb

use of com.earth2me.essentials.items.AbstractItemDb in project MagicPlugin by elBukkit.

the class MagicItemDb method register.

public static boolean register(final MagicController controller, final Plugin essentialsPlugin) throws Exception {
    IEssentials essentials = (IEssentials) essentialsPlugin;
    IItemDb itemDb = essentials.getItemDb();
    if (itemDb instanceof AbstractItemDb) {
        ((AbstractItemDb) itemDb).registerResolver(controller.getPlugin(), "Magic", new MagicItemDb(controller));
    } else {
        return false;
    }
    return true;
}
Also used : IItemDb(com.earth2me.essentials.api.IItemDb) AbstractItemDb(com.earth2me.essentials.items.AbstractItemDb) IEssentials(net.ess3.api.IEssentials)

Aggregations

IItemDb (com.earth2me.essentials.api.IItemDb)1 AbstractItemDb (com.earth2me.essentials.items.AbstractItemDb)1 IEssentials (net.ess3.api.IEssentials)1