* @param as The Plugin name
*/
public void loadInternal(String name, String as) throws IllegalAccessException, InstantiationException, ClassNotFoundException, PluginAlreadyLoadedException, InvalidPluginException {
try {
if (plugins.get(as) != null)
throw new PluginAlreadyLoadedException(as);
Plugin plugin = new Plugin(name, bot, as);
plugins.put(as, plugin);
} catch (ClassCastException ex) {
throw new InvalidPluginException("Plugin class doesn't implement IPlugin");
}