caso for fazer plugin é
Coloque junto com o onCommand.
Villager Villager = (Villager)p.getWorld().spawn(p.getLocation(), Villager.class);
Villager.addPotionEffect(new PotionEffect(PotionEffectType.SLOW, 99*99*99, 127));
Villager.setAdult();
Villager.setCustomName("Nome");
Villager.setCustomNameVisible(true);
Villager.setProfession(Profession.BLACKSMITH);
caso for plugin pronto é
https://dev.bukkit.org/projects/cmdnpc