instance = (ExternalListener) clazz.newInstance();
doUpdate(update,instance.name() + " " + Messages.getString("NetworkTab.49"));
registerListener(instance);
if (PMS.get().getFrame() instanceof LooksFrame) {
LooksFrame frame = (LooksFrame) PMS.get().getFrame();
if (!frame.getPt().appendPlugin(instance)) {
LOGGER.warn("Plugin limit of 30 has been reached");
}
}
} catch (InstantiationException | IllegalAccessException e) {
LOGGER.error("Error instantiating plugin", e);