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;
}
Aggregations