// Get the entity from the string
EntityType entity = EntityType.fromName(entityType);
// If the entity is not null and the list contains the entity
// Then set the spawner to the entity type
if (entity != null && list.contains(entity.getName())){
CreatureSpawner spawner = (CreatureSpawner) block.getState();
// Set the spawner type
spawner.setSpawnedType(entity);
LogHelper.showInfo("spawnerSuccess#####[" + Utils.userFriendlyNames(entity.getName()), sender, ChatColor.GREEN);
} else {
LogHelper.showInfo("spawnerInvalid", sender, ChatColor.RED);
}
} else {