Class<? extends CraftBookMechanic> mechClass = CraftBookPlugin.availableMechanics.get(enabled);
try {
if(mechClass != null) {
CraftBookMechanic mech = mechClass.newInstance();
mech.loadConfiguration(proc, "mechanics." + enabled + ".");
}
} catch (Throwable t) {
Bukkit.getLogger().log(Level.WARNING, "Failed to load mechanic: " + enabled, t);
}
}