for (String f : dir.list()) {
if (f.contains(".jar")) {
CitizensNPCType type = CitizensNPCLoader.loadNPCType(new File(dir, f), this);
if (type != null) {
loadedTypes.add(type.getName());
Bukkit.getPluginManager().callEvent(new CitizensEnableTypeEvent(type));
}
}
}
if (loadedTypes.size() > 0) {
Messaging.log("NPC types loaded: " + Joiner.on(", ").join(loadedTypes));