@SuppressWarnings("deprecation")
	@EventHandler
	public void VillagerSpawn(CreatureSpawnEvent event){
		ArrayList<String> firstNames = new ArrayList<String>();
		OfflinePlayer[] oln = Bukkit.getOfflinePlayers();
		if(event.getEntityType().getName().equalsIgnoreCase("Villager")){
		  for(OfflinePlayer y  : oln){
			  firstNames.add(y.getName());
		  }
				int fnl = firstNames.size();
				int rFnl =  (int) (Math.random() * fnl ); 
				event.getEntity().setCustomName(firstNames.get(rFnl) );
				event.getEntity().setCustomNameVisible(false);
		}else if(event.getEntityType().getName().equalsIgnoreCase("Zombie")){
			}
		}